Hello,
i'm fairly new to Crystal reports.. it's possible i'm trying to achieve something in a difficult way while an easier way is also available.. if so, please let me know.
The report i'm working on uses a field with a selection. The field is of the type datetime and the parameter that should be used to feed the selection is also datetime, and modifying the data structure or view is not possible. However, entering 2009-01-01 00:00:00 is annoying to users.
As far as i know, the parameter should really be of the same type as the data field.
I'm trying to create a workaround by creating a second parameter of type "date", and then creating a formula which should work like this:
{?OriginalParam} := DateTime ({?NewParam}, TimeValue (00, 00,00 ))
The formula is included in the report header so it will be fired.
However, this solution does not work. CR says there is an error in the formula.
Another approach, using the results of a formula as a starting point of a selection also didn't work because in the selection expert I was not able to select the formula, only parameters were allowed.
What should I do? The problem can't be that unique??
i'm using CR 11