P
Pauline C
I have a form where I am selecting participant's names for
certain dates (training database) and I have both the
Participant and Date as Primary Keys which works but
instead of the message that comes up I want to substitute
one saying to press Esc or select another name.
The code I have been using is in "After Update" of the
Participant field -
Dim Message As String
On Error GoTo ErrParticipant
ErrParticipant:
Message = MsgBox("You have already selected this
participant, Press Esc or select another Participant")
The problem is that it comes up every time after updating
the field whether there is an error or not. Where am I
going wrong?
certain dates (training database) and I have both the
Participant and Date as Primary Keys which works but
instead of the message that comes up I want to substitute
one saying to press Esc or select another name.
The code I have been using is in "After Update" of the
Participant field -
Dim Message As String
On Error GoTo ErrParticipant
ErrParticipant:
Message = MsgBox("You have already selected this
participant, Press Esc or select another Participant")
The problem is that it comes up every time after updating
the field whether there is an error or not. Where am I
going wrong?