Solved

Randomize and plotting the results to table.

Posted on 2001-09-06
7
198 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
  • 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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