ajstickland
MIS
Hi
I’m using Crystal XI.
I have a main report that a user selects a date range via two date parameters (end and start) and a different report which I will be using as a sub report that is based on weekly data (this cannot be changed). For these to match up I need to change the to and from parameters on the main report to return the first date and last date of a whole week or if the range is more than one week the first date of the first week and the last date of the last week.
E,g. If user selects 07/01/2008 – 18/01/2008 this would pass 07/01/2008 – 18/01/2008 into the main report and wk2 – wk3 into the sub report. I.e. so the date range ties up.
However if the user selects a part week I would like to know how to:
1)Warn the user that the date ranges won’t tie up and the report will not be accurate
2)Force the user to select either the first date (from) and last date of the week (to) or override by passing the parameter into the report and calculating the first date (From) and the last date of the week (To).
E.g. If user selects 07/01/2008 – 15/01/2008 this would be corrected or the user would only be allowed to select 07/01/2008 – 18/01/2008.
I would prefer to use a calendar as using a drop down list I think would be too confusing for the user.
Have you got any idea how to do this or does crystal not let you do this?
I’m using Crystal XI.
I have a main report that a user selects a date range via two date parameters (end and start) and a different report which I will be using as a sub report that is based on weekly data (this cannot be changed). For these to match up I need to change the to and from parameters on the main report to return the first date and last date of a whole week or if the range is more than one week the first date of the first week and the last date of the last week.
E,g. If user selects 07/01/2008 – 18/01/2008 this would pass 07/01/2008 – 18/01/2008 into the main report and wk2 – wk3 into the sub report. I.e. so the date range ties up.
However if the user selects a part week I would like to know how to:
1)Warn the user that the date ranges won’t tie up and the report will not be accurate
2)Force the user to select either the first date (from) and last date of the week (to) or override by passing the parameter into the report and calculating the first date (From) and the last date of the week (To).
E.g. If user selects 07/01/2008 – 15/01/2008 this would be corrected or the user would only be allowed to select 07/01/2008 – 18/01/2008.
I would prefer to use a calendar as using a drop down list I think would be too confusing for the user.
Have you got any idea how to do this or does crystal not let you do this?