P
Peter M.
I have the following code for a Save button on a standard
add/update/delete form. It's the code Access generates
for a Save record button...
Private Sub btnSave_Click()
On Error GoTo Err_btnSave_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70
Exit_btnSave_Click:
Exit Sub
Err_btnSave_Click:
MsgBox Err.Description
Resume Exit_btnSave_Click
End Sub
The problem is that it won't go to the Err_btnSave_Click
paragraph on a duplicate key error. It displays the
standard Access error 3146 message and that's all. I
cannot understand why it won't execute the
Err_btnSave_Click paragraph. I want to code my own error
handling.
Someone PLEASE help me.............
add/update/delete form. It's the code Access generates
for a Save record button...
Private Sub btnSave_Click()
On Error GoTo Err_btnSave_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70
Exit_btnSave_Click:
Exit Sub
Err_btnSave_Click:
MsgBox Err.Description
Resume Exit_btnSave_Click
End Sub
The problem is that it won't go to the Err_btnSave_Click
paragraph on a duplicate key error. It displays the
standard Access error 3146 message and that's all. I
cannot understand why it won't execute the
Err_btnSave_Click paragraph. I want to code my own error
handling.
Someone PLEASE help me.............