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
Linq Adams - 12 Dec 2007 00:07 GMT
Private Sub CloseTwoForms_Click()
DoCmd.Close acForm, "Form1"
DoCmd.Close acForm, "Form2"
End Sub

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Linq Adams - 12 Dec 2007 00:08 GMT
Private Sub CloseTwoForms_Click()
DoCmd.Close acForm, "Form1"
DoCmd.Close acForm, "Form2"
End Sub

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Linq Adams - 12 Dec 2007 00:09 GMT
Private Sub CloseTwoForms_Click()
DoCmd.Close acForm, "Form1"
DoCmd.Close acForm, "Form2"
End Sub

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Linq Adams - 12 Dec 2007 00:10 GMT
Sorry! Got to do something about this stutter!

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003