473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Duty Allocation

171 100+
Hi All
I am in the process of developing a database and part of that i need to generate a roster for the staff duty allocation.
The duties are morning afternoon and night and the duty pattern with equally 8 hours.
There will be say 7 to 8 persons in a crew and five or six work positions. What i need to do is a pattern to allocate each person equal amount of time on a rotation basis to different positions and equal amount of break times.
From a form i can have a drop down list of the duties. Once the duties, number of persons ( like an input to a textbox) and the time range selected i need to generate a roster. Hope my question is clear and appreciate anyone could help me on this issue.

Thank u all for the support i always get from bytes
Feb 26 '09 #1
7 2408
NeoPa
32,556 Expert Mod 16PB
What data structure would you be working to here?
Feb 26 '09 #2
rajeevs
171 100+
Hi Neo

I dont want to store anything in the table. My request is to generate a duty pattern everyday for the staff when the supervisor click a button on the form
it should be like
as an example
Duty
Morning
staff1 work on pos1 time between 0230 to 0330, break for say 45min then pos3 for 1hr 30 min then break for 30 min.
if total staff available 7 they all need to work on positions like pos1 pos2 etc and need to get break after every position duty like that.
Duty hours always 8 hrs for selected duty ie, morning afternoon and night
Only the staff count varies sometimes 7 or 8. But the position are pre defined like pos1 to pos 5 or 6
I am struck with this because i am not sure how to define the tables, and how many tables required etc.
the end user ( ie. the supervisor of the shift) will have to click a button from a form after selecting the duty (ie, morning afternoon or night) and number of persons available for that duty and then he should get a report which shows an equally distrubuted time for each person on the positions and equal break time
Hope you understand what is my requirement and waiting for a favourable reply
Thank you for the prompt reply
Feb 26 '09 #3
NeoPa
32,556 Expert Mod 16PB
I can't understand what the question is. I thought the table layout would give me a clue, but you tell me there are no tables, then you tell me you don't know what the tables are.

It also sounds like you want the form to do the allocation for you, rather than show you what is there, so you can do that yourself (as the operator).

I see no evidence of your even having started on this so I'm not sure what sort of help you're expecting. I can certainly say that I am not prepared to just do it for you. I will happily answer any questions I can that will help you do it, but I don't even understand the question as there's so little information here.
Feb 26 '09 #4
ChipR
1,287 Expert 1GB
This is a programming problem that needs to be solved before you think about implementing it in Access. You need at least a strategy describing the rules of how you want to assign shifts pogrammatically.
Feb 26 '09 #5
Stewart Ross
2,545 Expert Mod 2GB
Rajeevs, please read our posting guidelines before you post again in this forum, and in particular please read the FAQ about posting homework questions. I reckon your current post, like several of your previous posts, relates to coursework or homework of some kind. I will be in touch with you by Private Message on this topic.

MODERATOR
Feb 26 '09 #6
rajeevs
171 100+
Hi All
I apologize if my question was not clear.
I didnt mean that i have no tables for this duty allocation. I create a table TblDuty with fields as Date, Duty, Staff, Position, TimeOn, TimeOff. The form is designed with unbound controls like TextBox Date(), Combobox for Duty (value list as Morning, Afternoon Night), TextBox to enter number of staff. My request is for a script or query which can allocate the duty and view in a report. The data generated can be saved to TblDuty for future reference. Thank for the help
Feb 27 '09 #7
Stewart Ross
2,545 Expert Mod 2GB
Sorry Rajeev, this is one of those occasions when we cannot assist. We do not know the details of your application, nor can we provide you with code for such a specific requirement when there is not the slightest indication that you have made an attempt to design a scheduling algorithm for yourself.

NeoPa and Chip have already said as much to you in their replies.

Designing a scheduling algorithm is not a trivial task, and even if you did provide enough detail about the task we cannot act as unpaid consultants for the design of your application.

The volunteer staff of this site try to help users with specific tasks, users who have already put effort and time into their development and need to slot a particular part of the puzzle into place before they can move onwards.

What our volunteers cannot do is to design your application for you - no matter how many unbound controls you already have on your form.

I will not close this thread yet, to allow you some time to reconsider your request.

MODERATOR
Feb 27 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: chris | last post by:
Hi all, I need to know, what is the difference between dynamic memory allocation, and stack allocation ? 1. If I have a class named DestinationAddress, when should I use dynamic memory...
1
by: Steve Banker | last post by:
I am developing a database for work to automate a manual stamp duty process using Access 97. First thing that must happen is that the loan amount must be rounded up to the next $100, ie: $15,340...
11
by: toton | last post by:
Hi, I have little confusion about static memory allocation & dynamic allocation for a cluss member. I have class like class Bar{ public: explicit Bar(){ cout<<"bar default"<<endl; }
24
by: Ken | last post by:
In C programming, I want to know in what situations we should use static memory allocation instead of dynamic memory allocation. My understanding is that static memory allocation like using array...
1
by: Peterwkc | last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back. By the way, my problem is like this i the first program was...
0
by: carlwuhwdmckay | last post by:
call of duty united offensive patch http://cracks.00bp.com F R E E
0
by: carlwuhwdmckay | last post by:
call of duty 4 crack multiplayer http://cracks.00bp.com F R E E
0
by: fennelllindy8241 | last post by:
call od duty 4 crack download
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.