473,402 Members | 2,072 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,402 software developers and data experts.

Random rotating work schedule...Can it be done??

78
Now that I have your attention ;) Here's what I would like to do. I would like to design Access to automatically generate a monthly schedule. Here's the catch, I have three shifts (8-4,10-6, and 12-8). Each worker is rotated daily through these shifts. To do it by hand it is somewhat random placement and EXTREMELY TEDIOUS. The shifts are only Monday thru Friday.

Now heres another catch. The 8-4 shift has to have 2 people, and the 12-8 shift has to have only 1 person.

I have one more catch if anyone can help me even get this far. I want to be able to designate days off needed, and some specfic shift needed before filling in the rest of the info. (this is not as important as I can always export the calendar and adjust for those days, but it would be nice.)

I have a decent calendar form set up started. What I really need is either subform for each day or a query or code design that will give me these results.

Thank you in advance for any help, this site has always been a great help in my learning proccess.

NICK
Apr 11 '08 #1
17 11594
mshmyob
904 Expert 512MB
Hello Nick,

Maybe someone can help you but it appears you want someone to write almost the entire program. I think you may get a better response if you explained 1 specific part of the app that is not working and post all relevent information and some code that is not working and then we can narrow down your problem that way.

As for 'Can it be Done' ... The answer is 'Yes'. If you have designed your table structure properly almost anything can be done in Access (related to databases naturally).

cheers,

Now that I have your attention ;) Here's what I would like to do. I would like to design Access to automatically generate a monthly schedule. Here's the catch, I have three shifts (8-4,10-6, and 12-8). Each worker is rotated daily through these shifts. To do it by hand it is somewhat random placement and EXTREMELY TEDIOUS. The shifts are only Monday thru Friday.

Now heres another catch. The 8-4 shift has to have 2 people, and the 12-8 shift has to have only 1 person.

I have one more catch if anyone can help me even get this far. I want to be able to designate days off needed, and some specfic shift needed before filling in the rest of the info. (this is not as important as I can always export the calendar and adjust for those days, but it would be nice.)

I have a decent calendar form set up started. What I really need is either subform for each day or a query or code design that will give me these results.

Thank you in advance for any help, this site has always been a great help in my learning proccess.

NICK
Apr 11 '08 #2
nspader
78
Hello Nick,

Maybe someone can help you but it appears you want someone to write almost the entire program. I think you may get a better response if you explained 1 specific part of the app that is not working and post all relevent information and some code that is not working and then we can narrow down your problem that way.

As for 'Can it be Done' ... The answer is 'Yes'. If you have designed your table structure properly almost anything can be done in Access (related to databases naturally).

cheers,
Thats exactly where my confusion is. I am not sure how to set the proper table structure.

I do not want to have anyone write all of the code for me. I am just stuck with no knowledge of how to even get off the ground with this.

Any starting point would be helpful. I would be more then happy to post the db I have started if anyone might think that is helpful.

Thanks
Nick

I have attached what I have Thus far. Thank you again everyone.
Attached Files
File Type: zip Schedule Try.zip (299.6 KB, 804 views)
Apr 11 '08 #3
mshmyob
904 Expert 512MB
That's a start post it and we'll check it out and give you some pointers.

cheers,

Thats exactly where my confusion is. I am not sure how to set the proper table structure.

I do not want to have anyone write all of the code for me. I am just stuck with no knowledge of how to even get off the ground with this.

Any starting point would be helpful. I would be more then happy to post the db I have started if anyone might think that is helpful.

Thanks
Nick
Apr 11 '08 #4
mshmyob
904 Expert 512MB
OK I downloaded it and sorry to tell you that the way you have it, it will never work.

Your table structure is incomplete. The tables are not normalized or linked with primary and foreign keys.

Read the following article and try again and re upload your new table design.

If you have any questions along the way after you have read the article and tried again I will be happy to answer.

Normalization

cheers,
Apr 11 '08 #5
nspader
78
Thank you for your reply. I figured I was setting tables up all wrong. I have never worked with setting up tables for this sort of thing.

I am going to read over this and work on it, hopefully over the weekend and repost as soon as I can get some sort of normalized table structure.

Thank you for you help so far.

Nick
Apr 11 '08 #6
nspader
78
OK, I have made an attempt at creating the proper tables. I am hoping you can take a look at it and see if the table design is at least correct before I move forward in further design.

Thank you so much for your help

Nick
Attached Files
File Type: zip Schedule Try.zip (276.5 KB, 481 views)
Apr 14 '08 #7
mshmyob
904 Expert 512MB
Hello Nick,

Big improvement from your first run. Congrats!

I will make a few suggestions:

1. Do not use a person's name as a primary key/foreign key - make up an Employee Number for your employees
2. Do not use spaces in your field names - Use an Underscore ie: Employee_Name or EmployeeName
3. Do not use any 'weird' symbols ie # - use only letters and numbers for field names.

I have noticed you may be able to track time but not dates. Could you fix up the field names by the rules mentioned above AND manually enter some sample data for me. I will then give it a thorough going over.

cheers,

OK, I have made an attempt at creating the proper tables. I am hoping you can take a look at it and see if the table design is at least correct before I move forward in further design.

Thank you so much for your help

Nick
Apr 15 '08 #8
mshmyob
904 Expert 512MB
Sorry for the delay but have been very busy.

I am finally looking at it in more detail and am starting to make some minor changes. When I finish them I will repost your database.

Thanks for your patience.

cheers,
Apr 16 '08 #9
nspader
78
Sorry for the delay but have been very busy.

I am finally looking at it in more detail and am starting to make some minor changes. When I finish them I will repost your database.

Thanks for your patience.

cheers,
Thank you so much for all you are doing. Take all the time you need, your help is greatly appreciated. I am going to work on the notes above and have them ready for looking at what you come up with. Thank you.

Nick

Ok I think I have the names corrected across the tables. One relationship I couldnt get the same as the rest it is one to one instead of one to many.

Also, I am not sure how to track the dates. Does it need to be anothe rtable with all the dates. I mean the first step is to get them to appear on the calendar form in the shift rotation.

Thanks again
Attached Files
File Type: zip Schedule Try.zip (276.3 KB, 325 views)
Apr 16 '08 #10
nspader
78
Should I start a new thread...with a different name to get better results?
Thanks
Nick
Apr 18 '08 #11
mshmyob
904 Expert 512MB
Sorry for the delay Nick. i finally got some time. I have redone your tables slightly and created some code to create a schedule - I am just checking it over and will upload to you in the next hour or so.

cheers,

Should I start a new thread...with a different name to get better results?
Thanks
Nick
Apr 18 '08 #12
nspader
78
Sorry for the delay Nick. i finally got some time. I have redone your tables slightly and created some code to create a schedule - I am just checking it over and will upload to you in the next hour or so.

cheers,
That's AWESOME. Thank you so much for the help. I know time is tight many times. I apologize if it seemed I was rushing you. I wasnt trying to. I was just seeing if you thought it would be better to have a new title to get some other eyes on it as well.

Like I said THANK YOU SO MUCH in advance.

Nick
Apr 18 '08 #13
mshmyob
904 Expert 512MB
Take a look at this and let me know if this is of any help.

cheers,

That's AWESOME. Thank you so much for the help. I know time is tight many times. I apologize if it seemed I was rushing you. I wasnt trying to. I was just seeing if you thought it would be better to have a new title to get some other eyes on it as well.

Like I said THANK YOU SO MUCH in advance.

Nick
Attached Files
File Type: zip Schedule Try.zip (238.9 KB, 1345 views)
Apr 18 '08 #14
nspader
78
It is EXACTLY what I needed to start. Thank you SOOO Much. I am going to look over some and play with. I will probably have a few questions along the way. But you have no idea how incredible a start this is.

THANK YOU

Nick
Apr 21 '08 #15
mshmyob
904 Expert 512MB
Good to hear.

We'll be here so ask if you have any questions.

cheers,

It is EXACTLY what I needed to start. Thank you SOOO Much. I am going to look over some and play with. I will probably have a few questions along the way. But you have no idea how incredible a start this is.

THANK YOU

Nick
Apr 21 '08 #16
mshmyob, I understand that this is a VERY old thread although it is very close to what I have been trying to do for quite a while. I am simply trying to automate a call center schedule using Access and while I have some good knowledge of Access and a very little bit of VBA what you have done here is very close. I have been trying to modify your code a little bit to be able to put "# of employees needed" for each individual shift. I have been unsuccessful. Can you offer any help? I would appreciate it!
Oct 15 '14 #17
mshmyob
904 Expert 512MB
Sure. Post what you have done and give me more details of what you want and I will see what I can do to help.

cheers,
Oct 27 '14 #18

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

Similar topics

1
by: Sandy Bremmer | last post by:
I have seen many Javascripts that rotate images with each load or refresh of the page but so far all I've found require hard coding the image filename into the script. Does anyone know of a script...
11
by: quickcur | last post by:
Suppose I have a function rand() that can generate one integer random number between 0 and 100. Suppose also rand() is very expensive. What is the fastest way to generate 10 different random number...
1
by: David Barger | last post by:
Greetings, It appears that an Append Query I run in Access XP is randomly failing to append a field. I have payroll data being entered into a payroll database. This data is exported daily to...
4
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. ...
4
by: Christina | last post by:
A project I am working on requires 5 random popup windows that rotate. A cookie is set each time one of the popups occurs with a 5 day expire period. The visitor isn't supposed to see the same...
1
by: Sunshine192 | last post by:
Hi, I'm still kinda new to PHP so I could do with some advice. I'm using the code below to select and show a random image from a folder of images. rotate.php <?php // Make this the relative...
9
by: Kraken | last post by:
Hi, i have an assignment to open PPM images and prompt the user for either brightening, flipping or rotating the image. Ive done the brightening and flipping, but i cant get the rotating to work....
6
by: lukasso | last post by:
Hi, this is my code that should produce something like a timetable for a few days with each day divided into 30 minute pieces. It makes query from MySQL and then creates a 2d $array which then is to...
11
Niheel
by: Niheel | last post by:
http://bytes.com/images/howtos/information_overloaded.jpgPaul Graham wrote an interesting article a few months back about how the internet is leading to information overload for information workers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.