Hi Folks
What I need to do is to open a form using a command button, then loop through the records on form till EOF, here are the steps :
1) click on a button to open the form ( which is on an
utility form )
2) Start with the first recrod on the form
3) Do some stuff like create PDF report and mail it ( for
which I already have the code - thanks to the forum )
The code generates PDF report based on the data on the
form for each record and email it to the address on the
form.
4) Then move to the next record and do the same stuff again
for the data in the next record
Loop until the last record and do the stuff
5) when done, display a msg saying job done.
Can someone please write me the VBA code.
Thanks very much for your time.
Rgds
Brenda
What I need to do is to open a form using a command button, then loop through the records on form till EOF, here are the steps :
1) click on a button to open the form ( which is on an
utility form )
2) Start with the first recrod on the form
3) Do some stuff like create PDF report and mail it ( for
which I already have the code - thanks to the forum )
The code generates PDF report based on the data on the
form for each record and email it to the address on the
form.
4) Then move to the next record and do the same stuff again
for the data in the next record
Loop until the last record and do the stuff
5) when done, display a msg saying job done.
Can someone please write me the VBA code.
Thanks very much for your time.
Rgds
Brenda