Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid: insert/add new record through code

Status
Not open for further replies.

Rdave

Programmer
Oct 24, 2002
3
US
Hi, does anyone know how to add a new record to a datagrid using the code.

I have populated the datagrid via adodb.recordset and would like user to add a new record by selecting the ADD command button.
 
At Form Activate
Adodc.Recordset.AddNew

At Command1 Click
Adodc1.Recordset.Update

also it is all.
 
Thanks for the reply!

That's what I am doing but I would like to display the data on datagrid with the new row and then update the record. I am trying to use bookmark but gets the invalid bookmark. Any suggestion how to achieve this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top