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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Defined Type Not Defined

Status
Not open for further replies.

BanditWk

Programmer
May 24, 2002
170
US
I have this front-end database located on a network with links to back-end tables and have used Recordset coding such as:

Dim Dbs as Database
Dim Rst as Recordset

Just recently, I've been receiving the error "User Defined Type Not Defined".

For my Autofill, it recognizes "Recordset" but doesn't recognize "Database" - how can this be? If you're going to write me directly, please write me at the CCCAmerica address, thanks in advance.
Roy McCafferty
aka BanditWk

Las Vegas, NV
roy@cccamerica.org
RLMBandit@aol.com (private)

"No need to send gifts, just send a smile."
 
I would take a guess and say you are using Access 2000 or XP. If that is the case, try:

Dim dbs As DAO.Database
Dim rst As DAO.Recordset

Also make sure you have a reference to DAO Objects 3.51 in your references If we knew what it was we were doing, it would not be called research, would it? - Albert Einstein [atom]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
cnq, the 2nd part of Robert's message is critical. You must have DAO Objects 3.51 in your database references to set a variable of type Database. In a VB code window in your database, go to Tools->References, then select DAO Objects 3.51, then re-compile your code. Let us know if that does not fix your problem.

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top