in the willmove event of an ADO data control, I am updating the caption to show the cursor location and record count
But when I execute the program, I get a compile errorCode: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
"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




Reply With Quote