Solved

MS Access ActiveX Error

Posted on 2014-11-12
5
219 Views
Last Modified: 2014-11-17
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.
0
Comment
Question by:jwandmrsquared
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:PatHartman
ID: 40438352
Make sure you have no compile errors and no missing references.
0
 

Author Comment

by:jwandmrsquared
ID: 40438396
If I was missing a reference, why would it work on another form in the same database?
0
 
LVL 35

Expert Comment

by:PatHartman
ID: 40438418
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
 

Accepted Solution

by:
jwandmrsquared earned 0 total points
ID: 40438821
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
 

Author Closing Comment

by:jwandmrsquared
ID: 40446881
Because it turned out to be a bizarre bug that few if any could have suggested.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now