Close 1st form when open 2nd

A

Anna

In a form on button i open another form. I want to close the first
form. Same in 2nd form i want when user click on cancel it close the
2nd form and open the first form. How to i do that needs help.

Thank You
 
R

Rick Brandt

Anna said:
In a form on button i open another form. I want to close the first
form. Same in 2nd form i want when user click on cancel it close the
2nd form and open the first form. How to i do that needs help.

Thank You

DoCmd.Close acForm, Me.Name
DoCmd.OpenForm "SecondFormName"

To go back...

DoCmd.Close acForm, Me.Name
DoCmd.OpenForm "FirstFormName"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top