help please...compile error: automation error

Devo

New member
Local time
Yesterday, 23:37
Joined
Feb 23, 2007
Messages
6
I have not made any changes to the form and suddenly I started getting this error message "compile error: automation error" and the highlighted code is "frm as form" in the phrase "dim frm as form" in the on open event...I later tried going into a different form and got the same error (compile...auto...) and the highlighted code is "Function EnableControls(frm As Form, intSection As Integer, intState As Boolean) As Boolean" from a module.

Is the problem the sharing of the frm variable???

I have the same form (first form) in a different database and it opens and functions fine.

Does anybody know exactly what this error means? I've tried searching for it but can't figure out what the underlying problem is. Thanks for help in advance!
 
Check References from the VBA IDE and see if any are MISSING.

Menu - Tools | References
 
Not sure what to look for

Ok I found the References and everything looks right...I guess I don't know exactly which ones should be included...Is there one in particular that I should be looking for?

The funny thing also is that I had the DB Backed up on another drive and after the primary one started giving me this error the backup started doing the same thing. Is it really possible for one of these libraries to be randomly unchecked? Thanks again!
 
Last edited:

Users who are viewing this thread

Back
Top Bottom