Solved

List

Posted on 2011-09-25
5
242 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:Krisraychris
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:North2Alaska
Comment Utility
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." ; "" )  
0
 

Author Comment

by:Krisraychris
Comment Utility
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.
 
0
 
LVL 12

Expert Comment

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

0
 

Author Comment

by:Krisraychris
Comment Utility
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
0
 
LVL 12

Accepted Solution

by:
North2Alaska earned 500 total points
Comment Utility
Here is a little sample of what I was thinking.  Things to focus on are the three tables, their data and their relationships.  Also, look at the conditional formatting of the Production Dates portal.

There is lots to do still, like are weekend part of your production schedule, how to populate the Work Week table (I did it with a script, check it out) and what is the values that will be entered by the user.  But this may give you an idea of what I was thinking.
Holiday.fp7
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
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…

728 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

14 Experts available now in Live!

Get 1:1 Help Now