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

Error for saving data?

Status
Not open for further replies.

Vincent81

Programmer
Dec 18, 2002
9
0
0
ID
I use SQL server 2000 for my database, and for conection i use ADO
but i get error when i want to save data? like this
"Key column information is insufficent or incorrect. Too many rows were affected by update. "

this my code

Private Sub Command8_Click()
If add = True Then
rs.AddNew
Else
rs.UpdateBatch
End If
save_data
rs.Update
rs.MoveFirst
DataGrid1.Refresh
Call load_form
first_button
colour_save_text
lock_text
End Sub

maybe someone can help me?
thanks
 
Sounds like you are trying to update the table that does not have primary key.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top