I have the following VBA in an Access project:
DoCmd.OpenForm "Importing"
' Some CPU-intensive code
The problem is, I just get a white screen until the intensive part is done.
How can I wait until the form is open before executing the rest of the code?
Sorry for the question guys, I've just found the answer (one of them cases of Googling for a while, posting to SO, and finding the answer right after):
DoCmd.OpenForm "Importing"
DoEvents
' Some CPU-intensive code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With