Solved

MoveComplete Error using ADO Data Control

Posted on 2001-07-31
3
475 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
Comment Utility
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
Comment Utility
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
Comment Utility
Yes, when I set up the new machine I forgot to run the ser vice pack.  Thanks.

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

771 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