amorosik
Member
- Local time
- Today, 14:59
- Joined
- Apr 18, 2020
- Messages
- 548
I have a report that needs to display rows composed of a DARE field and a AVERE field, and a third field that I will call SALDO that contains the difference between DARE and AVERE added to the SALDO field of the previous row
A basic example is attached
There are global variables for the report that are incremented and decremented, and that are used to enhance the SALDO field of each row
In preview everything works correctly
With the preview open, if I try to create a pdf using the command button on the Access command bar, or start printing, the values are incorrect because the report variables are not reset to their initial value
The question is: having the preview open, how can I detect the start of the pdf creation or the start of the report printing in order to reset the variables and make the data appear correct also in pdf/print?
A basic example is attached
There are global variables for the report that are incremented and decremented, and that are used to enhance the SALDO field of each row
In preview everything works correctly
With the preview open, if I try to create a pdf using the command button on the Access command bar, or start printing, the values are incorrect because the report variables are not reset to their initial value
The question is: having the preview open, how can I detect the start of the pdf creation or the start of the report printing in order to reset the variables and make the data appear correct also in pdf/print?