Results 1 to 3 of 3

Thread: ADO 2.6 error I am pulling my hair already

  1. #1

    Thread Starter
    Lively Member Surgeon's Avatar
    Join Date
    Oct 2000
    Posts
    121

    Question ADO 2.6 error I am pulling my hair already

    This is an odd one. If anyone could give me a hand it would be GREAT.
    I have a project in VB6 and it works perfect with ADO 2.5 Now I thought to jump to ADO 2.6 But hey, when I try to run my project, I get this error :
    "Compile error : Procedure declaration does not match description of event or procedure having the same name"
    and this error is raised on this procedure :
    Code:
    Private Sub Connection1_ExecuteComplete(ByVal RecordsAffected As Long, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pCommand As ADODB.Command, ByVal pRecordset As ADODB.Recordset, ByVal pConnection As ADODB.Connection)
        If (adStatus = adStatusOK) Then Exit Sub
        If pError.Description = "Authentication failed." Then Exit Sub
        Beep
        abnormalDescription = pError.Description
        NetworkError.Show vbModal
    End Sub
    If I change my reference back to ADO 2.5, everything goes OK.
    I even tried to delete my procedure and to write it back again, but the same thing happens.
    Oh, I forgot : I have the latest SP for VB installed (Service pack 5)
    Please help me folks.
    TIA
    Surgeon

  2. #2

    Thread Starter
    Lively Member Surgeon's Avatar
    Join Date
    Oct 2000
    Posts
    121

    Talking this was the solution

    Hey I got the solution. For everybody who's working with DataEnvironment and ADO later than 2.0, go to these 2 locations and you'll find the answer to this bugging problem.

    http://support.microsoft.com/support.../Q257/7/14.ASP
    http://support.microsoft.com/support.../Q222/1/45.ASP

    I wanna thank to whoever wanted to help me out with this one, but didn't got a chance.

    Surgeon

  3. #3
    Jethro
    Guest

    THanks dude................

    ............just got the same thing. Was going to post and ask for help.

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