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?Access error message.
jwandmrsquaredAsked:
Who is Participating?
 
jwandmrsquaredConnect With a Mentor Author Commented:
Microsoft had somehow taken the form name, used it as the table name in the query to populate the form, and had even changed the query grid.  BIZARRE.
0
 
PatHartmanCommented:
Make sure you have no compile errors and no missing references.
0
 
jwandmrsquaredAuthor Commented:
If I was missing a reference, why would it work on another form in the same database?
0
 
PatHartmanCommented:
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.
0
 
jwandmrsquaredAuthor Commented:
Because it turned out to be a bizarre bug that few if any could have suggested.
0
All Courses

From novice to tech pro — start learning today.