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 / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

open form / close form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alex - 31 May 2007 15:12 GMT
I have a command button on form A that takes me to form B.

I want form A to close upon the execution of form B opening.

In the on click event:  If I add DoCmd.Close before B opens, I can,
for only a moment, see the switchboard before form B opens.  If I add
DoCmd.Close after B opens, the command closes B.

How can I close form A after Form B opens.  Instead of DoCmd.Close,
I'm assuming I need to close form A by name.  Any help would be
appreciated.

alex
Baz - 31 May 2007 15:15 GMT
DoCmd.Close acForm, Me.Name

> I have a command button on form A that takes me to form B.
>
[quoted text clipped - 9 lines]
>
> alex
alex - 31 May 2007 15:52 GMT
On May 31, 10:17 am, "Baz" <b...@REMOVEbcap.THEeuro1net.CAPScom>
wrote:
> DoCmd.Close acForm, Me.Name
>
[quoted text clipped - 13 lines]
>
> - Show quoted text -

Thanks Baz...it took me a few to figure it out...I thought 'Name' was
the name of my form!

alex
 
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.