Link to home
Start Free TrialLog in
Avatar of Dale Logan
Dale LoganFlag for United States of America

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.
Avatar of plummet
plummet
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi

What is the form's recordsource at the time of the delete?

Avatar of Dale Logan

ASKER

It's a query having about 7 tables. Table Header is one of those tables.
ASKER CERTIFIED SOLUTION
Avatar of Dale Logan
Dale Logan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.