Click to See Complete Forum and Search --> : Urgent - ADO Code


HanneSThEGreaT
August 16th, 2001, 04:51 PM
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.

Cimperiali
August 24th, 2001, 05:25 AM
>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