S
scott04
Hi everyone,
I am using the following code:
Private Sub DeleteRecord_Click()
Dim intResponse As String
intResponse = MsgBox("Do you wish to delete this record?", vbYesNo, "Delete
Record")
If intResponse = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
Else
Cancel = True
End If
End Sub
What i would like to do is rather than a message pop up, Have a message
popup that forces a user to manually type the word DELETE and then hit Ok.
If the user does not spell it correctly then ignore the delete. Can this be
done by modifiing my code? Thanks.
I am using the following code:
Private Sub DeleteRecord_Click()
Dim intResponse As String
intResponse = MsgBox("Do you wish to delete this record?", vbYesNo, "Delete
Record")
If intResponse = vbYes Then
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
Else
Cancel = True
End If
End Sub
What i would like to do is rather than a message pop up, Have a message
popup that forces a user to manually type the word DELETE and then hit Ok.
If the user does not spell it correctly then ignore the delete. Can this be
done by modifiing my code? Thanks.