Painkiller
Programmer
Hi all,
I'm using an ado data control to display data in a textbox. Works fine. Now I'm trying to let the app perform other duties when the user navigates to another record with the data control. I'm trying to use the Movecomplete event of the ado data control. I've gotten the code for the event by clicking on the data control and then selecting the Movecomplete event from the right combobox in the code view. However when I try to run the app, I get the folllowing error:
Compile error:
Procedure declaration does not match description of event or procedure having the same name.
Apparently the code for the procedure declaration is invalid, but this code was generated by VB itself, I haven't changed it. Can anyone tell me what's wrong here?
Thx,
Here's the code as generated by VB:
Private Sub AdoDataControl_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'I haven't inserted any of my own code yet
End Sub
I'm using an ado data control to display data in a textbox. Works fine. Now I'm trying to let the app perform other duties when the user navigates to another record with the data control. I'm trying to use the Movecomplete event of the ado data control. I've gotten the code for the event by clicking on the data control and then selecting the Movecomplete event from the right combobox in the code view. However when I try to run the app, I get the folllowing error:
Compile error:
Procedure declaration does not match description of event or procedure having the same name.
Apparently the code for the procedure declaration is invalid, but this code was generated by VB itself, I haven't changed it. Can anyone tell me what's wrong here?
Thx,
Here's the code as generated by VB:
Private Sub AdoDataControl_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'I haven't inserted any of my own code yet
End Sub