CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Urgent - ADO Code

    I've got this program, all the forms have to link to a database, so I used the VB Dataform Wizard. The problem is that when I select the ADO Code in the Biding Type Options, and I uncheck the Add Button and Delete Buttons, and try to run the program - it gives me this error
    "Object does not source automation events" and it highlights
    "Dim WithEvents adoPrimaryRS As Recordset". When I comment it out, the program gives me another error "Procedure declarations does not match description of event or procedure having the same name" and it highlights "Private Sub cmdUpdate_Click()".
    How can I fix this? Please email me if this problem is unclear.
    Please Help, it's Very Urgent...

    Thanx
    Hannes

    F. T. W.

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Urgent - ADO Code

    >Private Sub cmdUpdate_Click()".
    I saw the code you posted me.
    You have an array of two commandbuttons named cmdUpdate one over the other.
    So vb is looking for:
    Private Sub cmdUpdate_Click(index as integer)


    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured