Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004

    Unanswered: Compile error: User defined type not defined

    I have used an Access to Visual basic converter program to convert an access2000 application I have wrote in to Visual basic 6. All the forms etc have been converted but when I try and run any of the forms the program stops with the Compile error:User defined type not defined. and highlights the the first 3 lines of the code below (I did not originaly include this code in access so the converter program has put it in)

    Private Sub datSwitchboard_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
    Call Form_Current
    datSwitchboard.Caption = "Record " & datSwitchboard.Recordset.AbsolutePosition + 1 & " of " & datSwitchboard.Recordset.RecordCount
    End Sub

    Any help would be greatly appreciated.



  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    looks like the ado library is not being found within VB, you probably need tocheck all the libraries you used in Access

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts