J
John Budding
I'm trying to program a Database with Access 2003 where Several Rotas may
occur on a Weekly, 2-Weekly or Monthly basis staffed from a pool of
volunteers.
More than one rota, coded A, B, C (for example) may occur on the same Date.
The Rota Table's primary Key is Date and RotaCode.
A Volunteer may not appear in more than one rota per day.
Forms indicate how many Volunteers are required for each particular Rota.
Example Rota Table of records -
01/01/2008 Rota A Volunteers 01, 20, 25
01/01/2008 Rota C Volunteers 03, 21, 30, 11
01/05/2008 Rota B Volunteers 01, 21
01/05/2008 Rota D Volunteers 20, 30, 03
01/12/2008 Rota D Volunteers 03, 05, 15
New Rota 01/01/2008 Rota F (no volunteer already on Rota A or C for the date
may be picked)
Rotas are populated with Queries which extract / create records based on the
Primary Key's component parts.
Thus, when generating any Rota, another Rota may already exist for a
specific date in the Rota Table.
When I start creating a new record, I can save the primary key of the new
record in the Table, so that I may then immediately extract any other records
containing the same date.
I can then compare any Volunteer being added to the new record, to ensure
they do not exist on these extracted records.
I need to specify a ?read-only? recordset in Visual Basic which will obtain
any other records containing the same date, so that I can construct a
variable table of all volunteers allocated to rotas on that date, by RotaCode
and Volunteer Code, for validation purposes, and then set this variable table
to nothing as I start to create the next new record.
occur on a Weekly, 2-Weekly or Monthly basis staffed from a pool of
volunteers.
More than one rota, coded A, B, C (for example) may occur on the same Date.
The Rota Table's primary Key is Date and RotaCode.
A Volunteer may not appear in more than one rota per day.
Forms indicate how many Volunteers are required for each particular Rota.
Example Rota Table of records -
01/01/2008 Rota A Volunteers 01, 20, 25
01/01/2008 Rota C Volunteers 03, 21, 30, 11
01/05/2008 Rota B Volunteers 01, 21
01/05/2008 Rota D Volunteers 20, 30, 03
01/12/2008 Rota D Volunteers 03, 05, 15
New Rota 01/01/2008 Rota F (no volunteer already on Rota A or C for the date
may be picked)
Rotas are populated with Queries which extract / create records based on the
Primary Key's component parts.
Thus, when generating any Rota, another Rota may already exist for a
specific date in the Rota Table.
When I start creating a new record, I can save the primary key of the new
record in the Table, so that I may then immediately extract any other records
containing the same date.
I can then compare any Volunteer being added to the new record, to ensure
they do not exist on these extracted records.
I need to specify a ?read-only? recordset in Visual Basic which will obtain
any other records containing the same date, so that I can construct a
variable table of all volunteers allocated to rotas on that date, by RotaCode
and Volunteer Code, for validation purposes, and then set this variable table
to nothing as I start to create the next new record.