Solved

MoveComplete Error using ADO Data Control

Posted on 2001-07-31
3
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

735 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