kakakaka77
Technical User
Hi,
I have a ACCESS database has two tables: employee and timesheet. I am trying to creat VB 2005 datagridview to control the database. Two tables of database were put on two forms called employee and timesheet. when I use the EmployeeBindingNavigator Bar to control data with insert,delete or save, it works fine. But, when I try to use the same thing for timesheet form to delete a record on datagridview, after click delete when I click SAVE button, it gives out a error message "update requires a valid deleteCommand when pass datarow" .
This is PK in emploee table, no PK in timesheet table.
How can I correct this error?
Thank you !
I have a ACCESS database has two tables: employee and timesheet. I am trying to creat VB 2005 datagridview to control the database. Two tables of database were put on two forms called employee and timesheet. when I use the EmployeeBindingNavigator Bar to control data with insert,delete or save, it works fine. But, when I try to use the same thing for timesheet form to delete a record on datagridview, after click delete when I click SAVE button, it gives out a error message "update requires a valid deleteCommand when pass datarow" .
This is PK in emploee table, no PK in timesheet table.
How can I correct this error?
Thank you !