Solved

MS Access ActiveX Error

Posted on 2014-11-12
5
212 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 34

Expert Comment

by:PatHartman
Comment Utility
Make sure you have no compile errors and no missing references.
0
 

Author Comment

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

Expert Comment

by:PatHartman
Comment Utility
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
Comment Utility
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
Comment Utility
Because it turned out to be a bizarre bug that few if any could have suggested.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

762 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

10 Experts available now in Live!

Get 1:1 Help Now