Hi,
I have a continuous form that serves as a list of items. When a user selects a record, a new form opens that allows you to edit or delete the item. My problem is that I want the continuous form to update as soon as a record is deleted from the other form.
Currently, when a record is deleted, the continuous form shows "Deleted" in all fields. As soon as I refresh the continuous form manually it removes the deleted record. Is there a way to automate this process so that my users will never see a deleted record in the continuous form?
I also never want the continuous form to close at any point. The only form that closes is the form used for editing records.
Here's the OnClick event of my delete button currently:
I have a continuous form that serves as a list of items. When a user selects a record, a new form opens that allows you to edit or delete the item. My problem is that I want the continuous form to update as soon as a record is deleted from the other form.
Currently, when a record is deleted, the continuous form shows "Deleted" in all fields. As soon as I refresh the continuous form manually it removes the deleted record. Is there a way to automate this process so that my users will never see a deleted record in the continuous form?
I also never want the continuous form to close at any point. The only form that closes is the form used for editing records.
Here's the OnClick event of my delete button currently:
Code:
Private Sub btnDeleteItem_Click()
If MsgBox("Do you want to delete this item from the list? (Only delete if item is not considered valuable)", vbYesNo, "Delete Confirmation") = vbYes Then
DoCmd.RunCommand acCmdDeleteRecord
End If
End Sub