Solved

MoveComplete Error using ADO Data Control

Posted on 2001-07-31
3
476 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now