|
-
May 25th, 2001, 04:25 PM
#1
Thread Starter
Lively Member
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
-
May 25th, 2001, 07:14 PM
#2
Thread Starter
Lively Member
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
-
May 25th, 2001, 08:09 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|