S
Shane Nation
I have an Access database (2003) with three tables:
Table A has a name, team name etc.
Each row in table B has a date (Each day, going to next year), with six
possible shifts each person could work
Table C has the ID of the persons name from table A, and the dates along
with the shifts that they are doing.
(As it was a many to many relationship I had to created a third table (C)
I have created a query (Q1) from table A and table C, linking them on the
name ID field.
I then have a form showing Table A and Q1 as a sub form. All works fine as
you can see the name of the person and select the date requires in the sub
form in a dropdown list linked to table B and tick which shift they are
doing on the date you have picked.
Question:
The trouble is that you can select the date more than once in the sub form,
so you may have the 02/09/2004 twice, which obviously is no good as they can
't work the same day twice. How do I stop this being allowed?
Any help would be great
Thanks
Table A has a name, team name etc.
Each row in table B has a date (Each day, going to next year), with six
possible shifts each person could work
Table C has the ID of the persons name from table A, and the dates along
with the shifts that they are doing.
(As it was a many to many relationship I had to created a third table (C)
I have created a query (Q1) from table A and table C, linking them on the
name ID field.
I then have a form showing Table A and Q1 as a sub form. All works fine as
you can see the name of the person and select the date requires in the sub
form in a dropdown list linked to table B and tick which shift they are
doing on the date you have picked.
Question:
The trouble is that you can select the date more than once in the sub form,
so you may have the 02/09/2004 twice, which obviously is no good as they can
't work the same day twice. How do I stop this being allowed?
Any help would be great
Thanks