MoveComplete Error using ADO Data Control

I just got a new workstation and had to reinstall Visual Studio.  Suddenly I am getting the following error when trying to run the program:  

"Procedure declaration does not match description of event or procedure having the same name."

The sub is question is the MoveComplete Event sub of an ADO Data control.  

Am I missing a Reference or what?  





LVL 1
DreamingEagleAsked:
Who is Participating?
 
TimCotteeConnect With a Mentor Head of Software ServicesCommented:
No, you are using the older version of the data control which is shipped with SP3 and a newer version of ADO (2.1 or higher). You have two options, either upgrade to SP4/SP5 for the new version of the ado data control, or amend the event declarations for the control. Change the ADODB.Recordset datatype for the last parameter in each event to ADODB.Recordset20 and it will work quite happily.
0
 
Anthony PerkinsCommented:
The following article on MSDN may help:
PRB: ADO Data Control Events May Generate a Compilation Error (Q222145)
0
 
DreamingEagleAuthor Commented:
Yes, when I set up the new machine I forgot to run the ser vice pack.  Thanks.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.