All:
I have this code in Access, which starts a timer, and after 15 seconds, the loop ends and the rest of the code is processed. Problem, the program locks up while this is looping... Any suggestions?
........
Dim PauseTime, Start
PauseTime = 15 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
Loop
DoCmd.RunMacro "mcrCloseForm"
........
After 15 seconds, the loop ends and the rest of the code is processed (runmacro). This timer allows me to delay the running of the macro by 15 seconds, but it locks up instead and I can't work during the 15 seconds.
Thanks!
MitchJP
I have this code in Access, which starts a timer, and after 15 seconds, the loop ends and the rest of the code is processed. Problem, the program locks up while this is looping... Any suggestions?
........
Dim PauseTime, Start
PauseTime = 15 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
Loop
DoCmd.RunMacro "mcrCloseForm"
........
After 15 seconds, the loop ends and the rest of the code is processed (runmacro). This timer allows me to delay the running of the macro by 15 seconds, but it locks up instead and I can't work during the 15 seconds.
Thanks!
MitchJP