Solved

Recordset in VB 5

Posted on 1998-02-23
2
184 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

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 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

18 Experts available now in Live!

Get 1:1 Help Now