Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No ADODB?? 1

Status
Not open for further replies.

ParaTrooper

Technical User
Feb 5, 2002
16
0
0
US
I get an error on this piece of code:

Dim rs1 As ADODB.Recordset

The error is:
Microsoft VB compile error: "User-defined Type not defined"

I 'inherited' this database from a co-worker that has left, but I think it might be some problem with the database options.

Any help is much appreciated.
Jim.
 
Shoot, I can't find the post where I answered this question the other day.

Basically you're missing a reference library. You can select which libraries are available while you're working on VBA code. Here's how you get there:


1. On the Tools menu, click References. The References command on the Tools menu is available only when a Module window is open and active in Design view.
2. Select the check boxes for those applications whose type libraries you want to reference.

You need one of the ADO (ActiveX Data Objects) libraries. Scroll down and pick the one with the latest version. No need to "push" it up the list; it will automatically move to the top along with the other libraries.

Have fun!

Onwards,

Q-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top