Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Randomize and plotting the results to table.

Posted on 2001-09-06
7
Medium Priority
?
204 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
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!

 

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 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

660 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