Results 1 to 6 of 6

Thread: PLS some help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    jor
    Posts
    85

    PLS some help

    Hi

    this error appeared when i used event procedure 4 ADODC1
    -------------
    Procedure declaration does not match description of event or procedure having same name
    ------------------------
    the event procedure is
    ------------------------------
    Private Sub Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
    Adodc1.Caption = FormatNumber(Adodc1.Recordset.AbsolutePosition, 0) & _
    "OF" & FormatNumber(Adodc1.Recordset.RecordCount, 0)
    End Sub

    thanks
    thanks

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    jor
    Posts
    85
    sure there is no 2 same of them and i didnt change any parametr

    but iam wondoring may be need to declare adodc1 like -


    dim with event adodc1 as adodb


    thanks
    thanks

  4. #4
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    In that case you are using a control array, and the procedure needs to be declared as:
    VB Code:
    1. Private Sub Adodc1_WillMove(Index As Integer, _
    2.     ByVal adReason As ADODB.EventReasonEnum, _
    3.     adStatus As ADODB.EventStatusEnum, _
    4.     ByVal pRecordset As ADODB.Recordset)
    5. End Sub

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    jor
    Posts
    85

    sorry dosent work

    you are right my all form controls are array mode

    i replaced my code with yours

    but same error msg

    thanks
    thanks

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    jor
    Posts
    85

    sorry

    i have just one adodc1 on the form has multi controls array


    pls any expirt help i will be apreciating

    thanks
    thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width