PDA

View Full Version : How do I edit records in vb6.0



Utech22
March 27, 2007, 02:41 PM
I want to edit data on a form, for the command button I tried
Adodc1.Recordset.EditMode
but it does not work;
what to do?
I googled but not getting a direct tutorial; can anyone also suggest one
to deal with this issue?

girldemsuga
March 30, 2007, 04:22 PM
it sounds like you have binded controls.
If so i dont not recommend it.

I edit data in the table by exectuing and SQL Updata Statement.

Wild_Willy
March 30, 2007, 05:22 PM
Those can be tricky, not quite sure...

girldemsuga
March 30, 2007, 07:23 PM
What can be trick
it might seen had and trick at start but it is basically common sense at a while.
And further more, i have had nightmare with binding.

Utech22
March 31, 2007, 09:50 AM
I figure out a way; I just setFocus to the first text box to be edited,
then hit save, but thats one aspect;
I need it in edit mode so that, when I validate the save click event to check that the primary key is not the same...