?
Solved

MoveComplete Error using ADO Data Control

Posted on 2001-07-31
3
Medium Priority
?
492 Views
Last Modified: 2012-08-13
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?  





0
Comment
Question by:DreamingEagle
3 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 6337698
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
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6337701
The following article on MSDN may help:
PRB: ADO Data Control Events May Generate a Compilation Error (Q222145)
0
 
LVL 1

Author Comment

by:DreamingEagle
ID: 6338226
Yes, when I set up the new machine I forgot to run the ser vice pack.  Thanks.

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question