Solved

Randomize and plotting the results to table.

Posted on 2001-09-06
7
200 Views
Last Modified: 2010-04-06
I am making a shift scheduling system.  there are times when employees make requests to be assigned to certain shifts at certain dates.  I want to plot this requests in a table that looks like this:

NAME                   MONDAY             TUESDAY                  WEDNESDAY          THURSDAY
//name-                 // Request                                                 //Request

Now, i want to create the weekly schedule with the requests already plotted.

How do i make the schedule with the requests intact?

Thanks....
0
Comment
Question by:cacandz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 

Expert Comment

by:eddie_kho
ID: 6459977
i think u can solve this by save the employees requests in database...
create a form to append/update/delete the record and then another modul to generate the report (the schedule)...
if u want to know further about the database or any... just let me know...
0
 

Author Comment

by:cacandz
ID: 6466299
Thanks eddie!

if it is not too much to ask, i have another question related to the one i posted.

i have an employees request database already. what i want to do is to include this requests in the weekly schedule. my weekly schedule is in calendar form and i have a hard time doing this..

what must i do?
0
 

Expert Comment

by:eddie_kho
ID: 6466326
please post your table-structure here...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cacandz
ID: 6473947
here's my employee table:
Emp#     Name      ... (other employee information)

requests database:
Emp#     Name      Type of Request      Date
1         ice          OFF              8/18/01

(type of request: refers to a DAY OFF or a shift schedule request (e.g. 7am-3pm), date is for what date the request is to be plotted)

Schedule table:
Emp#      Monday     Tuesday     Wednesday ....... Sunday
1         /random      OFF         /random .......  /random


The request is to be plotted to the schedule table...

is there a way?

thanks in advance.

Candz
0
 

Accepted Solution

by:
eddie_kho earned 50 total points
ID: 6475690
By assumed that your SCHEDULE table was created weekly, then what u should do is:

1. Create a query of the employee REQUEST of the week. For
   example:
   adoquery1.Add("Select * From REQUEST Where (");
   adoquery1.Add(" DATE >= 09/16/2001 And ");
   adoquery1.Add(" DATE <= 09/22/2001 And ");
   adoquery1.Add(" EMP# = KeyDesired");
   adoquery1.ExecSQL;
2. Once you got the query then the rest of progress would
   be easily done. You can get the WeekDay by using the
   DayofWeek() Function (see the help for more detail...)

hope this could help u
0
 

Author Comment

by:cacandz
ID: 6475825
thanks eddie.... i'll try the code. i'll let you know how it will turn out.

thanks again..

candz
0
 
LVL 17

Expert Comment

by:geobul
ID: 9295553
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept eddie_kho's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

geobul
EE Cleanup Volunteer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question