How to make a popup goway automatically

Czeszyn

Registered User.
Local time
Today, 15:07
Joined
Oct 14, 2014
Messages
128
Hello

I had used a form to come up as a popup, and on that popup, the person can chose a report to go to (button). Is there a way that once they chose the button they want, to make the popup to go away automatically?

Thank you in advance.

Tony
 
Since it's a form you can close it in the code behind the button.
 
How do I do that, I am new to this.

Thank you for responding.
Tony
 
If it's VBA

DoCmd.Close

With the appropriate arguments.
 
Paul

I did not use any VB, still learning that. I did my from set up through property. Is there a spot that I go to in the property sheet to enter that code??

Tony
 
If you created an embedded macro, the action is Close. You should be able to add to your existing actions.
 
Paul
Not sure how to do the coding behind the button to close the popup form.

Tony
 
What is the existing code/macro behind the button?
 
Hi Paul

I just use the button options that was offer in the design. When the popup comes up, it allow the user to chose any report they need to see. When the button is pressed, it brings up the correct form. But the popup does not go away, I had to put a close button, to close it. I would like it so that once the button is pressed for whichever form that is chosen, the popup would close. In properties for the button,

It says:
OpenForm
Form Name: GMX-351 Menu
View: Form
Filter Name:
Where Condition
Data Mode
Window Mode: Normal
+ Add New Action
 
I don't use macros, but click on Add New Action and choose Close as the action, and fill in the appropriate arguments.
 
Hi Paul

Thank you, thank you. It worked like a charm. Thank you again.

Tony
 

Users who are viewing this thread

Back
Top Bottom