Using Access 2016
Donations part of a church congregation database
If the user wants to Delete a donation for a particular donor, the form is opened, the donor selected, and the record desired for deletion selected.
The user has two choices: (1) press Delete on the keyboard, or (2) press a Delete command button
Behind the command button, called cmdDelete, lies this code
This has always worked in the past but doesn't work in Access 2016 (part of the Microsoft Office 365 suite).
Can anyone point me to a way to fix this code?
Thanks!
Tom
Donations part of a church congregation database
If the user wants to Delete a donation for a particular donor, the form is opened, the donor selected, and the record desired for deletion selected.
The user has two choices: (1) press Delete on the keyboard, or (2) press a Delete command button
Behind the command button, called cmdDelete, lies this code
Code:
Private Sub cmdDelete_Click()
On Error GoTo Err_cmdDelete_Click
Select Case MsgBox(" Do you really wish to" _
& vbCrLf & " DELETE this record?" _
& vbCrLf & "" _
& vbCrLf & "This cannot be undone!" _
, vbYesNo Or vbExclamation Or vbDefaultButton1, "Delete check")
Case vbYes
GoTo DeleteProcess
Case vbNo
Exit Sub
End Select
DeleteProcess:
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
DoCmd.SetWarnings True
Exit_cmdDelete_Click:
Exit Sub
Err_cmdDelete_Click:
MsgBox Err.Description
Resume Exit_cmdDelete_Click
End Sub
This has always worked in the past but doesn't work in Access 2016 (part of the Microsoft Office 365 suite).
Can anyone point me to a way to fix this code?
Thanks!
Tom