Results 1 to 4 of 4
  1. #1
    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 07:31.

  2. #2
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,844
    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...
    Last edited by loquin; 05-25-07 at 14:56.
    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


  3. #3
    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

  4. #4
    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 03:02.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •