I am using Crystal version 9. The functions Trim and Truncate do not work. I am using them in formulas. Values sent and returned still contain the '.00' at the end.
Any ideas why?
Here's what's happening:
I am trying to convert a year input by user (say 2007) to the proper format so I can determine which year of data to pull from the database. Crystal's conversion of 2007 to 2,007.00 became an issue in this case and many others. So I was trying to use trim and truncate to get rid of the '.00'.
I want to do something like this to pull all records from 1/1/year thru a named month of the same year:
{Table.Date} in
(DateValue({?Year},01, 01) to DateValue({?Year},{?Month},{@MonthDays}))
Any ideas why?
Here's what's happening:
I am trying to convert a year input by user (say 2007) to the proper format so I can determine which year of data to pull from the database. Crystal's conversion of 2007 to 2,007.00 became an issue in this case and many others. So I was trying to use trim and truncate to get rid of the '.00'.
I want to do something like this to pull all records from 1/1/year thru a named month of the same year:
{Table.Date} in
(DateValue({?Year},01, 01) to DateValue({?Year},{?Month},{@MonthDays}))