Calculate time needed to generate report

camilovic

Registered User.
Local time
Today, 18:22
Joined
May 19, 2003
Messages
27
How I can calculate time (for ex. in mseconds) needed to generate report… from OnClick button event up to finish generate the report?
So, I’d like to compare which report is open faster. Those two reports are similarly. Displayed the same value. Difference is only in record source and criteria.
Thanks
 
If the reports are triggered/opened through a command button, you could enter code behind the button that assign the current time to a varible (time1) at the very begining of the execution. At the very end of the execution, assign the current time once again to another varible (time2), then you could assigne the difference to a third varible (timetotal = (time2 - time1)).

Send a message box to display the the timetotal OR you could even put it in the report itself in an inconspicuios area.

msgbox "This report took "& timetotal & " to complete"
 
Pat already provided the answer to this, on a duplicate post.

Wayne
 

Users who are viewing this thread

Back
Top Bottom