Link to home
Start Free TrialLog in
Avatar of jwandmrsquared
jwandmrsquared

asked on

MS Access ActiveX Error

I am calling an event written in VBA from a button on a form in Access.  I have the almost IDENTICAL code on another form (I changed the variable and query names, that is IT) that is working just fine.  However, I keep getting the attached error when I try to run it from my new form.

Any ideas?User generated image
Avatar of PatHartman
PatHartman
Flag of United States of America image

Make sure you have no compile errors and no missing references.
Avatar of jwandmrsquared
jwandmrsquared

ASKER

If I was missing a reference, why would it work on another form in the same database?
Missing references cause errors that almost always have nothing to do with anything.  Usually, it is the first piece of code that is executed that raises the error.  So, you might get an error telling you that the Date() function is invalid if that code is executed first.
ASKER CERTIFIED SOLUTION
Avatar of jwandmrsquared
jwandmrsquared

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Because it turned out to be a bizarre bug that few if any could have suggested.