The only way to really rule out mapped drives would be to unmap (while disconnected from network) all mapped drives and then see if the problem persist.
The error is probably coming from somewhere else and is showing up when you open the form. The following link discusses it some.
http://www.access-programmers.co.uk/forums/showthread.php?t=122481
From the example you are using:
5. Finally, to allow reports to be previewed...in every report you will need to put:
In the OnOpen: DoCmd.RunMacro "mcrRestore"
In the OnClose: DoCmd.RunMacro "mcrHide"
Check the properties of the employee form and make sure that it does not have a filter saved in it also "Allow Filters" = Yes and "Filter on Load" = No.
A quick and easy method would be to open a user form to simulate a messagebox with some generic message and an OK button. This will take the focus away from your form.
Then in the OnOpen event of your new form, you can loop through the controls, on the original form, that you want to turn off...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.