G
Guest
Novice level, please....
I want a custom message to notify the user that his input is a duplicate of
an existing field (CompositeID). The user then needs the ability to either
abort or retype his input. This is what I have so far... which gives the
custom message but then flops.
-----------------------------------------------------------------------
Private Sub CompositeID_AfterUpdate()
Dim DupCompID As Integer
If CompositeID > 1 Then
DoCmd.SetWarnings False
DupCompID = MsgBox("Composite ID already exist", vbAbortRetryIgnore,
"errCompID")
Me.CompositeID.SetFocus
End If
End Sub
I want a custom message to notify the user that his input is a duplicate of
an existing field (CompositeID). The user then needs the ability to either
abort or retype his input. This is what I have so far... which gives the
custom message but then flops.
-----------------------------------------------------------------------
Private Sub CompositeID_AfterUpdate()
Dim DupCompID As Integer
If CompositeID > 1 Then
DoCmd.SetWarnings False
DupCompID = MsgBox("Composite ID already exist", vbAbortRetryIgnore,
"errCompID")
Me.CompositeID.SetFocus
End If
End Sub