G
Guest
Dear Helpers,
I am absolutely new at VisualBasic Coding....
I have form when I want to add a button that deletes the current record. It
is very easy; I used Button wizard and chose a procedure for record deletion.
BUT - I want the user to be prompted whether he/she is sure about deleting
the record.
Can you help me somebody?
Procedure which Access offered:
-------------------------------------------------------------------
Private Sub DeleteRcd_Click()
On Error GoTo Err_DeleteRcd_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_DeleteRcd_Click:
Exit Sub
Err_DeleteRcd_Click:
MsgBox Err.Description
Resume Exit_DeleteRcd_Click
End Sub
-----------------------------------------------------------------------------
I am absolutely new at VisualBasic Coding....
I have form when I want to add a button that deletes the current record. It
is very easy; I used Button wizard and chose a procedure for record deletion.
BUT - I want the user to be prompted whether he/she is sure about deleting
the record.
Can you help me somebody?
Procedure which Access offered:
-------------------------------------------------------------------
Private Sub DeleteRcd_Click()
On Error GoTo Err_DeleteRcd_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_DeleteRcd_Click:
Exit Sub
Err_DeleteRcd_Click:
MsgBox Err.Description
Resume Exit_DeleteRcd_Click
End Sub
-----------------------------------------------------------------------------