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 Programming / December 2005

Tip: Looking for answers? Try searching our database.

Close Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MBoozer - 17 Dec 2005 02:50 GMT
Ths is rather embarassing but here goes. When I open FormA, I want FormB to
close. What would be the OnOpen event syntax for FormA to close FormB?
Thanks.
Gary Miller - 17 Dec 2005 03:16 GMT
Docmd.Close acForm, "FormB"

You can also close it from the code that opens FormA the
same way and save putting code in two spots.

Signature

Gary Miller
Sisters, OR

> Ths is rather embarassing but here goes. When I open
> FormA, I want FormB to
> close. What would be the OnOpen event syntax for FormA to
> close FormB?
> Thanks.
MBoozer - 17 Dec 2005 04:13 GMT
Thanks Gary. Appreciate the help.

> Docmd.Close acForm, "FormB"
>
[quoted text clipped - 6 lines]
> > close FormB?
> > Thanks.
 
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.