Hello,
I wonder if anyone could please help,
I have created a table for logging employee attendance and dates, among other things, and would like to find out how to prevent the same employee ID being entered on the same date, twice.
My table structure needs duplicates of the ID number and date in their own individual columns, but i only need it to flag a duplicate when trying to enter an ID number on the same date twice.
I hope i've explained myself.
I wondered about having two primary keys for this but can't find a work around.
If you have any ideas and could help i'd appreciate it.
Many thanks,
Tmc.
I wonder if anyone could please help,
I have created a table for logging employee attendance and dates, among other things, and would like to find out how to prevent the same employee ID being entered on the same date, twice.
My table structure needs duplicates of the ID number and date in their own individual columns, but i only need it to flag a duplicate when trying to enter an ID number on the same date twice.
I hope i've explained myself.
I wondered about having two primary keys for this but can't find a work around.
If you have any ideas and could help i'd appreciate it.
Many thanks,
Tmc.