Dale Logan
asked on
Run-time error 3167: Record is deleted
I have a user receiving a message that I don't get. They get run-time error 3167: Record is deleted. It happens when clicking on a button that is to delete a record from a table that is part of the query for the form.
Here's the code:
CurrentDb.Execute "DELETE * FROM Header WHERE AssessmentID=" & Me.AssessmentID
Me.Form.Requery
Is this caused because of the requery? Maybe the form doesn't know the record has been deleted.
Here's the code:
CurrentDb.Execute "DELETE * FROM Header WHERE AssessmentID=" & Me.AssessmentID
Me.Form.Requery
Is this caused because of the requery? Maybe the form doesn't know the record has been deleted.
ASKER
It's a query having about 7 tables. Table Header is one of those tables.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This question must have slipped through the EE cracks. I had never received a notice saying it was still open. I figured this one out a long time ago.
What is the form's recordsource at the time of the delete?