If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Procedure Declaration Does Not Match Description O ....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Oct 2004
Posts: 72
Procedure Declaration Does Not Match Description O ....

what's wrong with the codes? Pls reply me. Thanks

It hightlight this line:

Private Sub Adodc1_MoveComplete(ByVal dReason As ADODB.EventReasonEnum,
ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset

and the popos up this mesg:
Compile error:
Procedure declaration does not match description of event or procedure having the same name

Last edited by sal21; 01-11-09 at 06:31.
Reply With Quote
  #2 (permalink)  
Old
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,823
I just took a glance at your project. There's a TON of forms there. On which form is the error appearing?

BTW. You don't have a control array of data controls, do you? If so, your events would need to include the index number.

FYI: data controls are not kind to your database- by default, they each open their own separate connection to the database (very inefficient) and they are inflexible. I would recommend that you change over to data objects. Remember, friends don't let friends use data controls...
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Last edited by loquin; 05-25-07 at 13:56.
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Dec 2007
Posts: 4
VB6 Xp SP2 incompatibility

Hi All
XP SP2, VB6 Enterprice edition.

I am getting the following error :

Private Sub Adodc1_MoveComplete(ByVal dReason As ADODB.EventReasonEnum,
ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset


Compile error:
Procedure declaration does not match description of event or procedure having the same name

I searched exhaustivly and has not found an answer and do not want to give up many years of work due to microsoft incompatibility to their own products.

I have searched for about a month and many hours each day to no avail. Can any one direct me to an answer.

Thank you all. I will be opening this forum frequently to see any forthcoming reply
Reply With Quote
  #4 (permalink)  
Old
Registered User
 
Join Date: Oct 2009
Posts: 1
Wink Procedure Declaration problem Solved

Hi,

this reply is 2 years late for the original user marooned

But I found his post because I have the same problem 2009-10-08

He had this problem

Private Sub Adodc1_MoveComplete(ByVal dReason As ADODB.EventReasonEnum,
ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset


Compile error:
Procedure declaration does not match description of event or procedure having the same name

so do I.

I found a solution or work around

========================
1- I declared in my form

Option Explicit

Dim WithEvents db As ADODB.Recordset

2- then so that the form reseives event from Adodc I did this

Private Sub Form_Load()
Set db = Adodc1.Recordset
End Sub


Now when i select db in forms object i can see the events and they are generated automatic


Private Sub db_MoveComplete(ByVal adReason As ADODB.EventReasonEnum,
ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
MsgBox "It works"
End Sub
========================

So I had this same problem a few years ago but I abandoned.

I hope that this will help the next one that gets the same error message

Bye, Guy

Last edited by terreaultguy; 10-08-09 at 02:02.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On