Close 1st form when open 2nd

  • Thread starter Thread starter Anna
  • Start date Start date
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
 
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"
 
Back
Top