Environment: Crystal Reports Developer XI R1 (+ Crystal Reports Server XI R1)
Many of our sales reports allow the user to choose a time period (either a number of months or pre-set values like year-to-date, etc.).
I have a set of repository custom functions that build a date string (e.g. "November 2005 to March 2006") which is displayed at the top of the report.
The problem is that I make use of CurrentDate to create these strings, and so if the user looks at the report 3 months later, then the date string will have changed (e.g. "February 2006 to June 2006"), which is obviously incorrect.
Obviously I need to use DataDate, but Crystal won't let me use this in a custom function.
Does anyone know how to create a (repository) custom function to display date strings that doesn't use the current date?
Many thanks,
Darran
Many of our sales reports allow the user to choose a time period (either a number of months or pre-set values like year-to-date, etc.).
I have a set of repository custom functions that build a date string (e.g. "November 2005 to March 2006") which is displayed at the top of the report.
The problem is that I make use of CurrentDate to create these strings, and so if the user looks at the report 3 months later, then the date string will have changed (e.g. "February 2006 to June 2006"), which is obviously incorrect.
Obviously I need to use DataDate, but Crystal won't let me use this in a custom function.
Does anyone know how to create a (repository) custom function to display date strings that doesn't use the current date?
Many thanks,
Darran