Expert 5K+
P: 8,666
|
hey people, can you help me out here. How do i replace the message that is produced by MS Access when you click the delete record button. The message "You are about to delete one message"
I would like to replace this message with my own, how does the coding of this go by?????
help!!!!!!
- In the Click Event of your DELETE Button:
- DoCmd.SetWarnings False
-
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
-
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
-
DoCmd.SetWarnings True
- In your Form's Delete() Event:
- Private Sub Form_Delete(Cancel As Integer)
-
Dim Msg As String, intResponse As Integer
-
-
Msg = "Are you sure you want to DELETE this Record?"
-
intResponse = MsgBox(Msg, vbYesNo + vbDefaultButton1 + vbQuestion, "Delete Confirmation")
-
-
If intResponse = vbYes Then
-
Else
-
Cancel = True
-
End If
-
End Sub
| |