Why #Deleted is seen on the child sub-form when a record is deleted from master subform

Copper Contributor

I have created a form with form wizard in MS Access including two linked sub-forms.When I delete a record from Master sub-form the #Deleted is seen on the child sub-form as well as database tables. I did not have such a problem before. How can I fix it?

1 Reply

@Farshad79 This is because the form's recordsource is not requeried after the delete and that now deleted record is being flagged because it WAS in the recordsource. You can avoid this by immediately requerying the form's recordsource after deleting the record. That will return a new recordset which no longer contains the deleted record.