Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ado data control event declaration invalid???

Status
Not open for further replies.

Painkiller

Programmer
May 18, 2001
97
NL
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
 
solved it. Had to set the reference from ado 2.6 back to 2.0

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top