Solved

Recordset in VB 5

Posted on 1998-02-23
2
187 Views
Last Modified: 2012-05-04
Why is VB 5 not recognizing recordset as a valid type?
I get a user type not defined error when attempting to compile the statement
dim TempRS as recordset
0
Comment
Question by:whitej8
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
alokm earned 200 total points
ID: 1457761
Because you did not add reference to the library you want to use.
Goto Project->References and then check the DAO or RDO whichever u want to use.
That will certainly work.
0
 
LVL 2

Expert Comment

by:alokm
ID: 1457762
Since u are using recordset u probably want to use DAO.
If u don't want compatibility with previous versions of JET engines then u should choose MicroSoft DAO 3.5 Object Library.
This will solve it.

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 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