Link to home
Start Free TrialLog in
Avatar of Krisraychris
Krisraychris

asked on

List

Hi
I need to get dates from a Holiday List Table so that the system will show which dates match the range of dates in the week of production.
I have a Production Table where the intened  Week of Production (WeekOfFiscalYear) is set by the planner.
eg Week 19 :Starts on Monday(WeekStartDate) 02/05/2011 and ends on Friday 06/05/2011
Monday Tuesday  Wednesday Thursday Friday are separate date  fields  which are based on the Week Start date   + one day for Tuesday ,+ 2 for Weds etc
I have another related  table HOLIDAYS which lists all holidays for the year.
If for example Tuesday 03/05/2011 is a Holiday I want the Tuesday field to be show "Holiday".
The problem is that I cannot seem to get the calculation to do this for a range of days.
Once the week of production has been set I want the system to go to the Holiday list , check if there are any Days/dates in the week of production that are equal to any of the week days within that week of production and then to alert.
Hope I have mader it clear.
Thanks in advance
Avatar of North2Alaska
North2Alaska
Flag of United States of America image

When the Week of Production is entered, calculate two columns Week Start Date and Week End Date.  Using these two columns, create a relationship to the Holidays table where Week Start date is less than the date of the holiday and Week End Date is Greater than the date of the holiday.  This should return a list of holidays between the start and end dates.  Now you have this list, you can create a third column that does the alert calculation, like IF(count ( holidays ) > 0 then "Hey there's a holiday in there somewhere." ; "" )  
Avatar of Krisraychris
Krisraychris

ASKER

Thank you... the first part was spot on and the rellationship is giving me the date range and finding the public holiday within that Week Of Production.
I need to match the date of this  holiday with any of the 5 Production working Days Monday Tuesday etc.
If there is a match then I need to know which day of the week it matches with.
 I would like  some way of showing the planner  which day of the  Production Week day Mon to Fri is the holiday.As in the example above 03 May 2011 is a holiday and no production should be planned for that day.
I was thinking the simplest way is to create a separate fields for each day of the week and the holiday or Holidays which show up in any of the five fields.
But the most important question is how ot get the Holiday to show the  match with  the Production week day and show it as a date.
I would appreciate your ideas on this.
 
How about this.  Create a table with two columns, Production Week and Day Date.  Now join the production week from the main table to the new table, this would give you a portal with a list of the dates in the production week.  You could then join the new table to the holiday table.  This would give you two options; 1)   using the join between the new table and the Holidays table, create the indicator above or 2) remove the holiday dates from the portal all together, only displaying days that production can take place.

If I do what you have suggested then I am not getting the date range I need as the Production Start Date and End are two fixed dates and it does not list the Monday to Friday Range.
I tried a rellationshipe between the Holiday table and Main Table.
List(Production date Monday;Production Date Tuesday;Production Datye Wednesday etc...to Friday)
and To Holiday Table :Holiday Date.I viewed the result in the main table in a portal and it shows the holiday date correctly but only one day and not where there are two holidays days in the week. I dont know if this is workable but where there is one day in the week I set condional Formating to Formula Is-Holiday Table:Date to highlight the Production Day Field.This worked but only when the day is a Monday.
I need a way to link the Main Table with the Production Week Table to the Holiday Table so that The portal in the Production Table will will show identify the Holiday/s in the week.
Hope you can give soem direction on this one.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of North2Alaska
North2Alaska
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial