hi all
Can anybody help me with the vb6 datagrid error control code.When I click addnew all textboes are cleared and the datagrid sets focus to an empty row but when I decide to click cancel update, I get a msg that "row cannot be inserted,row must have at least one column value set".
this is the coce for my cancel button:
Private Sub cmdCancel_Click()
On Error Resume Next
Adodc1.Recordset.CancelUpdate
ClearText
End Sub