C
carolm
By the way Steve Schapel, all your posts so far have gotten me at least this
far!! thank you! But...
I've created two macros -- one opens a form containing data for a report
based on a table of data that will be a different number of records each day.
This macro then runs the macro that prints output to a snapshot file one per
record with a unique file name based on on a patient number. I get all the
ouptuted records without a problem but when I get to the end of the list it
advances to the null record and returns an error - "you may be at the end of
the dataset." and halts the process.
I've tried:
* hard code 12 for the repeat - get the error
* place a unbound text box on the form and do a setvalue and then decrement
it by 1 each time through, then used a repeat expression checking to see if
the value is 0 - get the error.
* used a repeat expression to evaluate if the field is now null - i get the
error.
The problem seems to be that the form is advancing to the next record before
I can evaluate if I have cycled through all the records so it always advances
past the last record and causing the popup.
I'm using MSAccess2000. I plan to make this whole process called from a
task on the windows scheduler so it will run unattended on a dialy basis.
So close and yet so far! HELP please!
far!! thank you! But...
I've created two macros -- one opens a form containing data for a report
based on a table of data that will be a different number of records each day.
This macro then runs the macro that prints output to a snapshot file one per
record with a unique file name based on on a patient number. I get all the
ouptuted records without a problem but when I get to the end of the list it
advances to the null record and returns an error - "you may be at the end of
the dataset." and halts the process.
I've tried:
* hard code 12 for the repeat - get the error
* place a unbound text box on the form and do a setvalue and then decrement
it by 1 each time through, then used a repeat expression checking to see if
the value is 0 - get the error.
* used a repeat expression to evaluate if the field is now null - i get the
error.
The problem seems to be that the form is advancing to the next record before
I can evaluate if I have cycled through all the records so it always advances
past the last record and causing the popup.
I'm using MSAccess2000. I plan to make this whole process called from a
task on the windows scheduler so it will run unattended on a dialy basis.
So close and yet so far! HELP please!