It appears you are trying to determine whether a form is open or not. I am
concerned about the way you are using IsLoaded. IsLoaded is an AccessObject
property. You many be confusing Access. It looks like you have a function
named IsLoaded.
If you want to determine if a form is loaded and not in designview, first
change the name of your function to something like IsFormLoaded and try it
this way:
If CurrentProject.AllForms(strFormName).IsLoaded And
CurrentProject.AllForms(strFormName).CurrentView <> acCurViewDesign Then
IsFormLoaded = True
End If
> I keep having to go back to a backup database whenever I edit one form
> because I get an error that says there is a return without GoSub
[quoted text clipped - 10 lines]
>
> End Function
SteveC - 17 Jun 2006 21:32 GMT
Thanks
> It appears you are trying to determine whether a form is open or not. I
> am
[quoted text clipped - 28 lines]
>>
>> End Function
SteveC - 19 Jun 2006 16:07 GMT
It seems that this comes and goes. When I repair the database, it goes away
for a while so I have left it alone for the timebeing. I have filed away
your help to use later. Thanks again!
> It appears you are trying to determine whether a form is open or not. I
> am
[quoted text clipped - 28 lines]
>>
>> End Function