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

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 
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

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 
L

Linq Adams via AccessMonster.com

Sorry! Got to do something about this stutter!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 

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