Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MS Access ActiveX Error

Posted on 2014-11-12
5
Medium Priority
?
247 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 40

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 40

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

824 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