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

Simple Database but "user-defined type not defined" 1

Status
Not open for further replies.

WildGun

Technical User
Jan 13, 2005
15
US
Hi

I am new so I appoligize for stupid questions but I am stuck, I built a simple database using the VB6 Project Wizard and added a Database file to it. I even used the sample DB that comes with VB6 BIBLIO.MDB everything seemed to build correctly and I have reviewed the forms and everything look ok but when I run the project I receive the "Compile Error user-defined type not defined".

When I select debug it points me to this line of code;

"Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset"

Please help

Thanks
Randy
 
From your visual basic development environment, select Project/References from the menu. In the ensuing window, scroll down to "Microsoft ActiveX Data Objects 2.8 Library" and select it. If 2.8 isn't the latest version, select the latest version. When you've finished, click ok. You should be fine, at least that line won't give you that error anymore.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top