?
Solved

Recordset in VB 5

Posted on 1998-02-23
2
Medium Priority
?
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
alokm earned 800 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

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

800 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