R
Ripper
I am using the following code to check for duplicate values in a required
field.
Dim strCriteria As String
strCriteria = "StuID =" & Me.StuID
If Not IsNull(DLookup("StuID", "tblStudents", strCriteria)) Then
MsgBox "This Student ID was already used", vbOKOnly, "Student ID Used."
Cancel = True
I get the message as normal, but the Access has to jump in with another
message box that says..
The value in the field or record violates the validation for the record
of field.
For Example, you may have changed a validation rule without verifying
wheter...
Click Undo on the Edit menu to restore the previous value, or enter....
How can I stop access from being so helpful? I don't want this message box.
I made my own.
field.
Dim strCriteria As String
strCriteria = "StuID =" & Me.StuID
If Not IsNull(DLookup("StuID", "tblStudents", strCriteria)) Then
MsgBox "This Student ID was already used", vbOKOnly, "Student ID Used."
Cancel = True
I get the message as normal, but the Access has to jump in with another
message box that says..
The value in the field or record violates the validation for the record
of field.
For Example, you may have changed a validation rule without verifying
wheter...
Click Undo on the Edit menu to restore the previous value, or enter....
How can I stop access from being so helpful? I don't want this message box.
I made my own.