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 / Macros / January 2005

Tip: Looking for answers? Try searching our database.

Can a form being open be a condition?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dennis A. - 30 Jan 2005 09:15 GMT
Is there some expression I can use in a macro that indicates that a
particular form is open?  I am trying to get a command button on a form to do
different things depending on what form is open in the application at the
moment.  
Abbarition - 31 Jan 2005 20:10 GMT
I don't usually run macros, but I think this will work.
You'll definitely want to test it though! I believe this
will only work if you are running Access 2000 or higher.
I don't think this function is available prior to 2000.
For your condition, use:

[CurrentProject].[AllForms]("FormName").[IsLoaded]=False

=False would mean the form is not open, while =True would
mean the form is open.

Hope that helps!

>-----Original Message-----
>Is there some expression I can use in a macro that indicates that a
>particular form is open?  I am trying to get a command button on a form to do
>different things depending on what form is open in the application at the
>moment.  
>.
 
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.