D
deb
I have a form with a sub form that has a button to copy the displayed form
and subform. Users can then change date and make edits if needed for their
current monthly reports.
If the date is not changed it will delete the record on close. Howerver it
prompts me if I want to delete record. How can I delete the record with out
the prompt? I want it to delete without the user knowing anything is deleted.
The below code is what I am using in the Unload form event.
If Me.ReportDt = 1 Then
Me.AllowEdits = True
Forms!f4KPIEdit.Form!f4KPIEditDetails.Form.AllowEdits = True
Me.AllowDeletions = True
Forms!f4KPIEdit.Form!f4KPIEditDetails.Form.AllowDeletions = True
' Me.Undo
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End If
Thanks in advance
and subform. Users can then change date and make edits if needed for their
current monthly reports.
If the date is not changed it will delete the record on close. Howerver it
prompts me if I want to delete record. How can I delete the record with out
the prompt? I want it to delete without the user knowing anything is deleted.
The below code is what I am using in the Unload form event.
If Me.ReportDt = 1 Then
Me.AllowEdits = True
Forms!f4KPIEdit.Form!f4KPIEditDetails.Form.AllowEdits = True
Me.AllowDeletions = True
Forms!f4KPIEdit.Form!f4KPIEditDetails.Form.AllowDeletions = True
' Me.Undo
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End If
Thanks in advance