E
Eleanor of Aquitaine
I have a table of students and I use a form to add new students. The
drawback to this is that I keep entering new records, not realizing that the
student is already in the table. So I want the form control [Last Name] to
check for a matching record before allowing me to move to the next control.
Table Name: Participants
Table Field: [Last Name]
Table Field: [First Name]
Form Name: ParticipantsForm
Form Control Name; [Last Name]
Form Control Name: [First Name]
So, what I'm looking for is when I enter the last name, and then the first
name in the form, the control:
checks [Last Name] and [First Name] fields in the Participants Table. If
the Last name and first name already have a record in the table, displays a
message box: "There is already a record for this name."
I've figured out how to do similar code when the fields don't match, but I'm
having trouble with this one.
Any help would be appreciated.
drawback to this is that I keep entering new records, not realizing that the
student is already in the table. So I want the form control [Last Name] to
check for a matching record before allowing me to move to the next control.
Table Name: Participants
Table Field: [Last Name]
Table Field: [First Name]
Form Name: ParticipantsForm
Form Control Name; [Last Name]
Form Control Name: [First Name]
So, what I'm looking for is when I enter the last name, and then the first
name in the form, the control:
checks [Last Name] and [First Name] fields in the Participants Table. If
the Last name and first name already have a record in the table, displays a
message box: "There is already a record for this name."
I've figured out how to do similar code when the fields don't match, but I'm
having trouble with this one.
Any help would be appreciated.