I've been trying to come up with a solution to this for sometime but with no result.
I have a report in crystal 7 which returns timetable information. It compares a parameter date range (startday and endday) to each timetabled activity startdate and enddate, and shows the data if the activities have started and not finished within that week range...so far so good, this works fine.
Each of these activites however also have what is referred to as a 'week pattern' - a text string of 1s and spaces to represent whether they take place in any given week. So the activity dates could encompass a whole year but have a couple of spaces in the week pattern to represent it not taking place in a couple of weeks of that year.
For example, Activity1. startdate = 28 April, enddate = 30th May therefore the activity takes place one day each week for 5 weeks. The week pattern for Activity1 would read '11111'. If the week pattern read '11 11' then that activity would not take place in the week beginning 12th May. got it?
Of course there are hundreds of activities each with different dates and week patterns!! And I'd like for my parameter dates to be able to not only see that the start and end dates are valid but ALSO whether that activity is TRUE for that week.
I'm at a loss with this, well beyond my skills. I guess it could be done simply by a programmer (which im not) but I'd really like to see it done as a Crystal routine or formula.
Please help..again
Les
I have a report in crystal 7 which returns timetable information. It compares a parameter date range (startday and endday) to each timetabled activity startdate and enddate, and shows the data if the activities have started and not finished within that week range...so far so good, this works fine.
Each of these activites however also have what is referred to as a 'week pattern' - a text string of 1s and spaces to represent whether they take place in any given week. So the activity dates could encompass a whole year but have a couple of spaces in the week pattern to represent it not taking place in a couple of weeks of that year.
For example, Activity1. startdate = 28 April, enddate = 30th May therefore the activity takes place one day each week for 5 weeks. The week pattern for Activity1 would read '11111'. If the week pattern read '11 11' then that activity would not take place in the week beginning 12th May. got it?
Of course there are hundreds of activities each with different dates and week patterns!! And I'd like for my parameter dates to be able to not only see that the start and end dates are valid but ALSO whether that activity is TRUE for that week.
I'm at a loss with this, well beyond my skills. I guess it could be done simply by a programmer (which im not) but I'd really like to see it done as a Crystal routine or formula.
Please help..again
Les