PDA

View Full Version : VB 6 Help Needed.....


part_time_ch
22-08-2008, 12:41 PM
I am new to VB6.
i have created a form and also a database with five fields.
i have also connected the db to the form by placing data control tool in the form.
i have a button named save and the coding for the button in click event is data1.recordset.update.

when i enter the input in runtime and click the save button, a dialog box appears with "update or cancel update without addnew or edit".

my question is how to add a first record in the database. what code i have to write in save button?

also tell me whether i can display the current system time during runtime in a label?

sreenidhi88
24-08-2008, 10:42 AM
I am new to VB6.
i have created a form and also a database with five fields.
i have also connected the db to the form by placing data control tool in the form.
i have a button named save and the coding for the button in click event is data1.recordset.update.

when i enter the input in runtime and click the save button, a dialog box appears with "update or cancel update without addnew or edit".

my question is how to add a first record in the database. what code i have to write in save button?

also tell me whether i can display the current system time during runtime in a label?

its already been a year since i have stopped using vb.what i can suggest is you are adding a record not updating it.so try using this one data1.recordset.add or smthing like tht.i really dont remember.
and you are asking in the wrong section.u wont get quick reply here.mov it to programming section.