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

Tip: Looking for answers? Try searching our database.

Open Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimP - 23 May 2007 13:45 GMT
What code would I use to determine if "MyForm" is open?
Graham R Seach - 23 May 2007 14:09 GMT
Jim,

Try using this function.

Public Function IsLoaded(sFormName As String) As Boolean
   IsLoaded = ((SysCmd(acSysCmdGetObjectState, acForm, sFormName) <> 0) _
                       AND (Forms(sFormName).CurrentView <> 0))
End Function

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

> What code would I use to determine if "MyForm" is open?
Klatuu - 23 May 2007 14:11 GMT
CurrentProject.Allforms("MyForm").IsLoaded
Signature

Dave Hargis, Microsoft Access MVP

> What code would I use to determine if "MyForm" is open?
 
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.