O
Opal
Could someone please help me create a unique
message to replace the system message for duplicate
values? My form is unbound and will remain unbound.
I am running Access 2003. I have looked in the help
and found the following:
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Const conDuplicateKey = 3022
Dim strMsg As String
If DataErr = conDuplicateKey Then
Response = acDataErrContinue
strMsg = "Each employee record must have a unique " _
& "employee ID number. Please recheck your data."
MsgBox strMsg
End If
End Sub
How would I handle this for an unbound form?
message to replace the system message for duplicate
values? My form is unbound and will remain unbound.
I am running Access 2003. I have looked in the help
and found the following:
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Const conDuplicateKey = 3022
Dim strMsg As String
If DataErr = conDuplicateKey Then
Response = acDataErrContinue
strMsg = "Each employee record must have a unique " _
& "employee ID number. Please recheck your data."
MsgBox strMsg
End If
End Sub
How would I handle this for an unbound form?