Close two forms at once?

C

CW

I have two forms that open up in succession and stay visible together as part
of my invoice creation process.
When we have finished editing the second form, I want to have a single Close
button that will close both forms with one click.
Assuming that we're talking about Form1 and Form2, how would I code this,
please?
Many thanks
CW
 
L

Linq Adams via AccessMonster.com

Private Sub CloseTwoForms_Click()
DoCmd.Close acForm, "Form1"
DoCmd.Close acForm, "Form2"
End Sub
 
L

Linq Adams via AccessMonster.com

Private Sub CloseTwoForms_Click()
DoCmd.Close acForm, "Form1"
DoCmd.Close acForm, "Form2"
End Sub
 
L

Linq Adams via AccessMonster.com

Private Sub CloseTwoForms_Click()
DoCmd.Close acForm, "Form1"
DoCmd.Close acForm, "Form2"
End Sub
 
Top