|
-
Nov 25th, 1999, 04:40 PM
#1
Every time I use the Data Form wizard to make a program that accesses a database I get a User Defined Type not defined. error. The problem code is
Code:
Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'This will display the current record position for this recordset
datPrimaryRS.Caption = "Record: " & CStr(datPrimaryRS.Recordset.AbsolutePosition)
End Sub
I'm using VB6 and have got Office 2000 installed.
Help!! 
------------------
Matthew Ralston
E-Mail: [email protected]
ICQ:31422892
Web Sites:The Blue Link My Home Page
-
Nov 25th, 1999, 05:13 PM
#2
Hyperactive Member
Set a reference (Projects menu - references) to the Microsoft ActiveX Data Objects library (ADO).
You can easily check it...
dim aaa as ADO... now you should see ADODB in the list .. if not then you haven't set the reference...
(sorry, but the F1 key could have helped you out pretty well here...)
-
Nov 25th, 1999, 05:30 PM
#3
Cheers! (As for the F1 bit I've only installed MSDN help to run off the CD and I ain't get 'em 'andy at the moment...)
------------------
Matthew Ralston
E-Mail: [email protected]
ICQ:31422892
Web Sites:The Blue Link My Home Page
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|