isloaded function??

bgseib

Registered User.
Local time
Today, 23:36
Joined
May 1, 2002
Messages
21
I am having problems with this isloaded function. I am using it in my login routine and it keeps giving me
"compile error sub or function not defined"
Does anyone know what I need to do to get this function to work?? Here is the code I am using..

If Not isloaded("frmLogin") Then
DoCmd.OpenForm "frmLogin", windowmode:=acDialog
End If

Thanks,
Brian
 
It is a memeber of the accessobject class. I looked it up in the object browser..

Has anyone used it before?

Thanks,
Brian
 
The example in the help file demonstrates using the function you're referring to in something like the following:

Code:
If CurrentProject.AllDataAccessPages(strPageName).IsLoaded = False

I've never tried the above one personally, I use the form load check posted at the Access Web, which uses the context like that of your code:
http://www.mvps.org/access/forms/frm0002.htm
 

Users who are viewing this thread

Back
Top Bottom