Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close Form 1

Status
Not open for further replies.

mrkshpntf

MIS
Apr 19, 2007
92
US
I have a form with command buttons.

Some of the buttons open other forms in a order. For example, on the form called customers I have buttons such as orders, customer contact, etc. If I click on the 'orders' button, it opens the form 'orders' but the 'customers' form remains open.

I would like the preceding (customer) form to close once the button to open the succeeding (orders) form is clicked.

Please help.

Thanks,
mrkshpntf
 
In the Click event procedure of the button(if in the main form):
DoCmd.OpenForm "name of orders form"
DoCmd.Close acForm, Me.Name

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top