Solved

User-defined type not define error

Posted on 2002-06-23
2
188 Views
Last Modified: 2012-06-27
hi,

does anyone have any idea what should i do with this declaration that cause "User-defined type not defined" error prompted everytime i run the program.

in modUti.bas

Option Explicit
Public Cn As New ADODB.Connection
Public Rs As New ADODB.Recordset


Thanks.
0
Comment
Question by:icecool
2 Comments
 
LVL 2

Accepted Solution

by:
corvanderlinden earned 50 total points
Comment Utility
Add a reference to Microsoft ActiveX data Objects library
0
 

Author Comment

by:icecool
Comment Utility
more details pleasseee...
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

16 Experts available now in Live!

Get 1:1 Help Now