Auto close a pop-up form after use

ozzy68

Registered User.
Local time
Today, 01:06
Joined
Dec 19, 2011
Messages
28
There is likely a simle answer to this but I cannot seem to find it.
I use a pop-up form to bring up a report after choosing a name from a drop-down list and clicking "ok". I would like the form to auto-close after it brings up the report, how do I accomplish this?
 
If you are using VBA to open the report, just add the following code to the end of the Click event of the Ok button.
Code:
DoCmd.Close acForm, "NameOfYourForm"

If you are using a macro, to open the report, add the close action to the macro after the open of the report.
 
Mr. B, your solution works great...thank you. :)
 
You are quite welcome.

Glad to help.
 

Users who are viewing this thread

Back
Top Bottom