Hello,
I am a complete Access novice but have been asked to create a database for work.
I work for a kind of employment agency which sends support staff to various sites throughout the city.
So far I have 3 tables:
Worker
Site
Shift requests
and have linked workerID and siteID into the shift requests table, so that we log which worker covers a shift and which site the shift is at.
I have also created a form and subform. The form shows the worker whilst the subform shows all shifts that the worker is allocated to.
What I want to do and what I am struggling with is this:
I want to create a combo box on the form which filters the subform so that only the shifts within a date range are visible. Basically, we need to be able to see at a glance what shifts a worker has picked up, week by week. I had a play with access 2010 and there seems to be a way of filtering built into the subform. Unfortunately we're running access 97 here and that doesn't seem to be an option.
So, is there a way to have 52 options in a combo box called '2nd - 8th May', '9th - 15th May' etc... which when selected would filter the results in the subform?
In addition, is there a way to then show on the form the total hours that a worker has been allocated in a week, which would change as different weeks were selected? I have a field in the shifts table for the shift hours.
If anyone could help with this it would be greatly appreciated. There seems to be a lot about filtering subforms on the internet but I've not found anything specifically about date ranges and being a novice I lack to knowledge to tweak things to my needs.
Many thanks,
Fred.
I am a complete Access novice but have been asked to create a database for work.
I work for a kind of employment agency which sends support staff to various sites throughout the city.
So far I have 3 tables:
Worker
Site
Shift requests
and have linked workerID and siteID into the shift requests table, so that we log which worker covers a shift and which site the shift is at.
I have also created a form and subform. The form shows the worker whilst the subform shows all shifts that the worker is allocated to.
What I want to do and what I am struggling with is this:
I want to create a combo box on the form which filters the subform so that only the shifts within a date range are visible. Basically, we need to be able to see at a glance what shifts a worker has picked up, week by week. I had a play with access 2010 and there seems to be a way of filtering built into the subform. Unfortunately we're running access 97 here and that doesn't seem to be an option.
So, is there a way to have 52 options in a combo box called '2nd - 8th May', '9th - 15th May' etc... which when selected would filter the results in the subform?
In addition, is there a way to then show on the form the total hours that a worker has been allocated in a week, which would change as different weeks were selected? I have a field in the shifts table for the shift hours.
If anyone could help with this it would be greatly appreciated. There seems to be a lot about filtering subforms on the internet but I've not found anything specifically about date ranges and being a novice I lack to knowledge to tweak things to my needs.
Many thanks,
Fred.