Bad Error: Access doesn't recognize Forms properties.

rockman

Senior Member
Local time
Today, 07:20
Joined
May 29, 2002
Messages
190
Hope someone can figure this out because I'm toast if I can't getting it working again. Code originally worked fine. I'm getting a "Method 'Item' of object 'Forms' failed" error.

Program errors on this line
Code:
If Forms(i).Name = sFrmName Then    <--- Error occurs here.
     If Forms(i).CurrentView <> conFormDesign Then  
          GetFormLoaded = True
          Exit Function ' Quit function once form has been found.
    End If
End If
Here's a sample of my immediate window debug:
? Forms.Count
2
? Forms(0).Name <--- Errors!!?! with "Application-defined or object-defined error"

Thanks for ANY help (I'm stumped),
Jeff
 
Got it working again.

I had an error in the parameter list of a MouseDown procedure in a form not even open.

Must have been throwing something off. Nice of Access to give me such a helpful error description! :p

Anyways, bottom line is I'll try to complie code first when ever I meet this error again.

Jeff
 

Users who are viewing this thread

Back
Top Bottom