Results 1 to 3 of 3

Thread: Databases

  1. #1
    Guest

    Post

    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: m.ralston@mediavault.co.uk
    ICQ:31422892
    Web Sites:The Blue Link My Home Page

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    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...)

  3. #3
    Guest

    Post

    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: m.ralston@mediavault.co.uk
    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
  •  



Click Here to Expand Forum to Full Width