doulostheou
Registered User.
- Local time
- Today, 08:56
- Joined
- Feb 8, 2002
- Messages
- 314
I have made several posts requesting help for the coding of a scheduling program I am attempting to make. However, as I keep thinking through the process; it seems there must be a better way. I need Access to figure out how many people I have staffed at any given half hour during the day (this is for a 24/7 operation). I currently have part of it working, with one table to store the number staffed at each half hour interval and the other to edit the start and end time of each representatives shift. I have created an AddStaff and RemoveStaff function that removes 1 from the specified time slot on the Staff table upon entering the control in the Shift table and then adds 1 from the specified time slot upon exiting the control. This seems to work except for a glitch when the value is Null.
But as I'm thinking through this project, it seems my whole approach may be wrong. I am dealing with a little under 200 employees. About half of these have set schedules. My original plan was to create a new table for each new schedule. It would create a record(including Start and End Times/Monday through Sunday) for each active employee. I was then going to have the set schedules stored in a separate table and have that updated in the new table for those employees who are set. For each shift it added it would then have to use the AddStaff function to increase the number in the Staff table by 1 during that shift time. I'm just realizing that in addition to being a lot of work to create, the project described above is also going to require alot of processing by the computer.
Does anyone have any suggestions for a better approach? It would be ideal if there was some way for access to dynamically evaluate the number staffed during each interval in a query. I'm guessing there is no way for it to be that simple.
But as I'm thinking through this project, it seems my whole approach may be wrong. I am dealing with a little under 200 employees. About half of these have set schedules. My original plan was to create a new table for each new schedule. It would create a record(including Start and End Times/Monday through Sunday) for each active employee. I was then going to have the set schedules stored in a separate table and have that updated in the new table for those employees who are set. For each shift it added it would then have to use the AddStaff function to increase the number in the Staff table by 1 during that shift time. I'm just realizing that in addition to being a lot of work to create, the project described above is also going to require alot of processing by the computer.
Does anyone have any suggestions for a better approach? It would be ideal if there was some way for access to dynamically evaluate the number staffed during each interval in a query. I'm guessing there is no way for it to be that simple.