Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Randomize and plotting the results to table.

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
cacandz
Asked:
cacandz
  • 3
  • 3
1 Solution
 
eddie_khoCommented:
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
 
cacandzAuthor Commented:
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
 
eddie_khoCommented:
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!

 
cacandzAuthor Commented:
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
 
eddie_khoCommented:
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
 
cacandzAuthor Commented:
thanks eddie.... i'll try the code. i'll let you know how it will turn out.

thanks again..

candz
0
 
geobulCommented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now