Solved

Doesn't recognize the ADODB variable types

Posted on 2007-03-29
6
426 Views
Last Modified: 2008-03-06
I am getting the following Visual Basic error in an Access Database (mdb):

Compile error:
User-defined type not defined

The variable that it doesn't recognize is "New ADODB.Recordset"

This database has worked just fine without any issues. Now it doesn't recognize the ADODB variable types.
0
Comment
Question by:tiggermt
6 Comments
 
LVL 34

Expert Comment

by:jefftwilley
ID: 18820635
What's changed in your environment? This usually indicates that an update or some other upgrade has either moved or overwritten DLLs on the offending machine. Have you opened the DB up and checked for any missing references?
J
0
 
LVL 61

Accepted Solution

by:
mbizup earned 125 total points
ID: 18820643
Make sure that you have your references set up properly:
From the VBA Editor:

Tools -> References
Make sure that
Microsoft Activex Data objects Librery v x.x   is checked

If it is checked and labelled MISSING, uncheck it and select the right version from the list.
Click OK to save and exit
0
 
LVL 67

Assisted Solution

by:sirbounty
sirbounty earned 125 total points
ID: 18820648
Check Project/References - make sure you've still got reference to Microsoft ActiveX Data Objects 2.x Library
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 75
ID: 18820665
in case the References suggestions does not fix this ... can you post all the relevant code?

mx
0
 

Author Comment

by:tiggermt
ID: 18820738
Thanks! It was the references.
0
 
LVL 34

Expert Comment

by:jefftwilley
ID: 18820743
Happy to help
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

839 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