I have a form with a subform where I review records via a relationship. The subform records belong to a table [tblPropertyDetails] and the main form table [tblPropertyManifest].
The records are pulled from an after update / dlookup code.
I would like to delete the record from the subform, but not from the table.
Is there a "remove" code instead of a "delete"? If I remove this particular record from the subform, I would need to update and clear out the fk somehow.
I was using this code on my non-review form with no issues because I needed to delete the record at that point. But now, I need to just remove it from the subform but keep it in the table for later use.
Any suggestions or is this possible?
The records are pulled from an after update / dlookup code.
I would like to delete the record from the subform, but not from the table.
Is there a "remove" code instead of a "delete"? If I remove this particular record from the subform, I would need to update and clear out the fk somehow.
I was using this code on my non-review form with no issues because I needed to delete the record at that point. But now, I need to just remove it from the subform but keep it in the table for later use.
Any suggestions or is this possible?
Code:
Private Sub Check265_Click()
RunCommand acCmdSaveRecord
If MsgBox("Delete selected Property?", vbQuestion + vbYesNo, "Delete Selected Records") = vbNo Then Exit Sub
CurrentDb.Execute "DELETE * FROM tblPropertyDetails WHERE DeleteRow = True"
Forms!frmPropertyTransferReview!SubfrmPropertyTransferReview.Form.Requery
End Sub