Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2007

Tip: Looking for answers? Try searching our database.

Close two forms at once?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CW - 11 Dec 2007 23:44 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.