L
Larry
I have a need to stop records from being deleted from the database (for
real) but still allow the user to delete the record if needed. This is
to keep all history, but not show the data that has been "deleted".
What I did was add a DELETED field to the table, then create a query
that gets all records that have not been deleted. The form is then
based on this query, as will all reports and such.
If the user attempts to delete a record, I trap it in the On Delete
event and cancel the delete, then set the delete flag to true.
I then try to perform a requery (Me.Requery) but I get an error
"Reserved Error" when that statement is executed.
I thought it might be because the record being shown had been marked
for deleted and couldn't be shown after the requery, so I put a goto
next record before performing the requery, but that didn't help.
Any thoughts?
TIA
real) but still allow the user to delete the record if needed. This is
to keep all history, but not show the data that has been "deleted".
What I did was add a DELETED field to the table, then create a query
that gets all records that have not been deleted. The form is then
based on this query, as will all reports and such.
If the user attempts to delete a record, I trap it in the On Delete
event and cancel the delete, then set the delete flag to true.
I then try to perform a requery (Me.Requery) but I get an error
"Reserved Error" when that statement is executed.
I thought it might be because the record being shown had been marked
for deleted and couldn't be shown after the requery, so I put a goto
next record before performing the requery, but that didn't help.
Any thoughts?
TIA