Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Help with Logic!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 18 Jan 2008 15:05 GMT
I have one table that has a list of schedules with the following columns:

AutoNumber, Date, Shift.  Example data looks like:

Autonumber        Date              Shift
1            1/2/08        7: 00AM – 4:00PM
2            1/2/08        7:00AM – 4:00PM
3            1/3/08        4:00PM – 12:00AM

I have another table of employees requesting the available shifts with the
following columns:

Date, Shift, Employee, DoubleDay, Reliability Rating.  Example data looks
like:

Date    Shift        Employee    Doubleday                Rating
1/2/08    7: 00AM – 4:00PM    John Doe    Sun        5%
1/2/08    7: 00AM – 4:00PM    Jane Doe    Wed        2%
1/2/08    7: 00AM – 4:00PM    Jose Doe    Sun        6%
1/3/08    4:00PM – 12:00AM    Jane Doe    Sat        10%

The object is to assign a schedule to the employee with the following logic:

1st logic – Request date is not the same as the Double Day gets the shift.
2nd logic – Rating with the lowest percentage gets the shift.

So looking at the above examples the result would be the following:

Shift Autonumber 1 will be given to Jane Doe.
Shift Autonumber 2 will be given to John Doe.
Shift Autonumber 3 will be given to Jane Doe.

Any help would be greatly appreciated
Dale Fye - 18 Jan 2008 17:21 GMT
I'm assuming that you have a typo (extra space) in the Shift column of
several records in both of your tables (at least in the example you provided).

So, let me make sure I understand this:
1.  The first table defines the positions (date/shift) you need filled.
2.  The second field defines the shifts people have signed up for.
3.  You want to fill all of the positions in table #1 with people from table
#2 based on your logic.  What happens if there are not enough volunteers to
fill all of the positions in table #1?

I'm not sure I understand Rule #1.  Do you mean that if 1/2/08 is Sunday,
John Doe is not elegible for that date?

Dale
 

Signature

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.

> I have one table that has a list of schedules with the following columns:
>
[quoted text clipped - 29 lines]
>
> Any help would be greatly appreciated
Michael - 18 Jan 2008 17:40 GMT
Hi Dale...

Thanks for replying...  
1.  If there are not enough people then the shift does not get assigned.  
All we are looking for is to assign those shifts that are volunteered for.

2.  If 1/2/08 is a Sunday and John Doe has Sunday listed as a DoubleDay then
John is not elegible for the shift.

All your other assumptions are accurate!

Thanks again!!

> I'm assuming that you have a typo (extra space) in the Shift column of
> several records in both of your tables (at least in the example you provided).
[quoted text clipped - 45 lines]
> >
> > Any help would be greatly appreciated
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.