C
chynewalker
I created this code to pop a box up that will let me know when i have a
duplicate number, however, I want to still be able to write a duplicate entry.
Private Sub OEM_NUMBER_BeforeUpdate(Cancel As Integer)
If DCount("[OEM_NUMBER]", _
"[ATLANTIS]", _
"[OEM_NUMBER] = '" & Me.OEM_NUMBER & "'") Then
MsgBox "This oem number already exists!!!"
Cancel = True
Else 'Do nothing
End If
End Sub
duplicate number, however, I want to still be able to write a duplicate entry.
Private Sub OEM_NUMBER_BeforeUpdate(Cancel As Integer)
If DCount("[OEM_NUMBER]", _
"[ATLANTIS]", _
"[OEM_NUMBER] = '" & Me.OEM_NUMBER & "'") Then
MsgBox "This oem number already exists!!!"
Cancel = True
Else 'Do nothing
End If
End Sub