ted.martin
Registered User.
- Local time
- Today, 13:20
- Joined
- Sep 24, 2004
- Messages
- 743
I am a little confused in the use of Doevents compared to introducing a pre-defined Pause.
For example, I have a form and a subform that has several records; e.g. an Invoice form with the subform of ordered products and prices. The subform calculates the total order value and then returns this number to the main invoice form.
Standard stuff I know but often I have to wait for the subform to complete the addition calculation before (say) command button printing the invoice from the main form.
I usually introduce a 2 second pause before the print command to ensure the subform total calculation has completed.
Would Doevents do the same thing? I don't think so in which case what is Doevents used for?
If someone could explain, that would be great.
Thanks
For example, I have a form and a subform that has several records; e.g. an Invoice form with the subform of ordered products and prices. The subform calculates the total order value and then returns this number to the main invoice form.
Standard stuff I know but often I have to wait for the subform to complete the addition calculation before (say) command button printing the invoice from the main form.
I usually introduce a 2 second pause before the print command to ensure the subform total calculation has completed.
Would Doevents do the same thing? I don't think so in which case what is Doevents used for?
If someone could explain, that would be great.
Thanks