Set up IsLoaded function

Lynn73

Registered User.
Local time
Today, 02:55
Joined
Jun 6, 2007
Messages
25
Hi
As part of my macro I need to define the IsLoaded function - I have tried searching through the Access help pages but IsLoaded doesn't seem to be listed on any of them.

Can anyone help??
Thanks
 
CurrentProject.AllForms("FormNameHere").IsLoaded
 
Hi
Sorry but where exactly do I need to put this text? Is it in the actual macro or do I need to define it elsewhere so I can use it in other macros later on?

Thanks again
 
It is actually VBA as I didn't see that this was the Macros category. But, if you put this into a Standard module (not a form module):
Code:
Public Function IsFormLoaded(strFormName As String) As Boolean
    IsFormLoaded = CurrentProject.AllForms(strFormName).IsLoaded
End Function

You can then call the function from your macro like this

Macro Action: RunCode
Arguments: IsFormLoaded("TheNameOfYourFormHere")

But, It's been so long since I've used macros that I can't remember exactly how you would incorporate that.
 

Users who are viewing this thread

Back
Top Bottom