DrewDog_21
May 18th, 2000, 03:55 AM
in the willmove event of an ADO data control, I am updating the caption to show the cursor location and record count
Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
Adodc1.Caption = "Record " & Adodc1.Recordset.AbsolutePosition + 1 & " of " & Adodc1.Recordset.RecordCount
End Sub
But when I execute the program, I get a compile error
"Procedure declaration does not match description of event or procedure having the same name"
The same thing happens in some of the other events. WHY? I have all of the references properly set and have no other problems with the operations of the ADO control (add record, delete, etc. work fine)
Thanks,
Andrew Nerney
Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
Adodc1.Caption = "Record " & Adodc1.Recordset.AbsolutePosition + 1 & " of " & Adodc1.Recordset.RecordCount
End Sub
But when I execute the program, I get a compile error
"Procedure declaration does not match description of event or procedure having the same name"
The same thing happens in some of the other events. WHY? I have all of the references properly set and have no other problems with the operations of the ADO control (add record, delete, etc. work fine)
Thanks,
Andrew Nerney