D
Dennis
Hi,
Where do I initialize public variables in a report?
I have a public variable where I put a sequential item number on each print
line. In the On Open event, I initilalized this ublic variables to 0. I then
do a print preview and a print. The print preview works fine, but the print
picks up the count from where the print preview left off.
I moved my initialization the the Report Header On Print event and it works
fine.
Is this the right way to initialize this variable or is there a more
appropriate event to initialize my variable. I tried On Activate, but that
did not work.
If I did not provide enough information, please tell me what I am missing.
Thanks,
Dennis
Where do I initialize public variables in a report?
I have a public variable where I put a sequential item number on each print
line. In the On Open event, I initilalized this ublic variables to 0. I then
do a print preview and a print. The print preview works fine, but the print
picks up the count from where the print preview left off.
I moved my initialization the the Report Header On Print event and it works
fine.
Is this the right way to initialize this variable or is there a more
appropriate event to initialize my variable. I tried On Activate, but that
did not work.
If I did not provide enough information, please tell me what I am missing.
Thanks,
Dennis