G
Gabe
Hello,
I want to prevent duplicate record entries based on a field.
For example, I have a table with an "lastname" field and a "round"
field. If a user enters the record "Doe" for lastname and "1" for
round, then the user must not be allowed to enter the same thing twice.
"Doe" can only be entered again if the user specifies a different round
(e.g., round 2,3,4,5,etc). The round value can be repeated, it just can't
have the same name.
So in other words, the table is only allowed to have 1 name per
round. When the user trys to input a duplicate record, there could be a
message that says: "this employee has been previously loaded" or something
like that.
The data I'm using kind of looks like this:
RecordID - lastname - round
001 - Doe - 1
002 - Smith - 1
003 - Davis - 1
004 - Doe - 1
So looking at this, RecordID 004 would be wrong because "Doe" is already in
round 1.
Does anyone out there know how to code something like this? I'm using Access
2003.
Thanks,
~Gabe
I want to prevent duplicate record entries based on a field.
For example, I have a table with an "lastname" field and a "round"
field. If a user enters the record "Doe" for lastname and "1" for
round, then the user must not be allowed to enter the same thing twice.
"Doe" can only be entered again if the user specifies a different round
(e.g., round 2,3,4,5,etc). The round value can be repeated, it just can't
have the same name.
So in other words, the table is only allowed to have 1 name per
round. When the user trys to input a duplicate record, there could be a
message that says: "this employee has been previously loaded" or something
like that.
The data I'm using kind of looks like this:
RecordID - lastname - round
001 - Doe - 1
002 - Smith - 1
003 - Davis - 1
004 - Doe - 1
So looking at this, RecordID 004 would be wrong because "Doe" is already in
round 1.
Does anyone out there know how to code something like this? I'm using Access
2003.
Thanks,
~Gabe