Detect when record has finished loading

PeterWieland

Registered User.
Local time
Today, 14:59
Joined
Sep 20, 2000
Messages
74
I am using DoCmd.GoToRecord to return a single record from around 300,000. Depending on where the record is the time taken to retrieve the record varies. If the code is allowed to continue, I get errors as the data is not ready. At the moment I use a timed delay to wait for the record to load, but that is not very elegant.

Is there a way to detect when the record has finished loading?
 
Have you tried setting a success flag in the Current event of the form and then looping your code on DoEvents until the flag is set?
 
Thanks RuralGuy, that did the trick!
 

Users who are viewing this thread

Back
Top Bottom