I am loading a form and then calling the "click" event on my form that runs a large query. During the query I'd like to have a field on the form redisplay "Loading ." every second while adding another " ." as each second passes. I have experimented with DoEvents but I'm sure I'm not doing it correctly because it's not running. Here's is the code that is running:
Then, I assume I need to create code in the Timer event of the form that every 1 second updates the text box on the form, but how do I do this at the same time as the query is running?
Any help/suggestions are appreciated!
Code:
Dim sSQL as string
sSQL = "Select . . . ."
docmd.setwarnings False
docmd.runsql(sSQL)
docmd.setwarnings True
docmd.close acform, me.name
Then, I assume I need to create code in the Timer event of the form that every 1 second updates the text box on the form, but how do I do this at the same time as the query is running?
Any help/suggestions are appreciated!