Solved

Randomize and plotting the results to table.

Posted on 2001-09-06
7
194 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
Comment Utility
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
Comment Utility
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
Comment Utility
please post your table-structure here...
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:cacandz
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now