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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete row in datagrid

Status
Not open for further replies.

lalee5

Technical User
Oct 20, 2002
70
US
Please help! I have a data grind bound to a ado database.


When I add records to the grid display the right records. the problem is when I try to delete.

if i add only 1 record and delete the same updated record the delete works fine. if I add more than two record and try to delete anyone of the displayed row it gives me the following error:

key column information is insufficiant or incorrect. Two many rows were afected by updated.


below is my updated code behind a command botton:

Private Sub ok_LostFocus()


Adotempsales.Recordset.Update
Adotempsales.Recordset.MoveNext
Adotempsales.Recordset.MovePrevious
Adotempsales.Recordset.Requery


thanks


kay




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top