Click to See Complete Forum and Search --> : delete a record


John Reynolds
August 19th, 2001, 11:43 AM
When I try to delete a record using the following code . . .


private Sub mnuPopDelete_Click()
DataEnvironment1.rscmdDepartments.Delete
End Sub




I get the following error . . .

"Row handle referred to a deleted row or a row marked for deletion."

Thanks for any solutions.
John

Iouri
August 20th, 2001, 07:15 AM
Define the connection object and execute an SQL

sSQL = "delete from Table where UniqueKey = YourCriteria"

conn.Execute sSQL

Iouri Boutchkine
iouri@hotsheet.com

John Reynolds
August 20th, 2001, 03:28 PM
Thanks for your help. But could you explain why
DataEnvironment1.rscmdDepartments.Delete
gives the error? Thanks