I created this report using Crystal Reports 9 several years ago. The description field is a string containing the invoice date and the item description.
The client instructions for formatting from the description field were as follows:
1. (First character) Open parenthesis
2. Followed by mm/dd/yyyy date format (slash will be used to separate the date segments).
3. (Eleventh character) Closed parenthesis
4. Followed by item description
Example: (12/15/2010)office supplies
I used the following formula to create the invoice date field:
If left({ProcItem.description}, 1) = chr(40) then
datevalue(Mid ({ProcItem.description}, 2,10))
And I used the following formula to create the item description field:
If left({ProcItem.description}, 1) = chr(40)
then Mid ({ProcItem.description}, 13)
else {ProcItem.description}
They have recently decided they would like to be able to enter the date using any recognized date format. The updated instructions are as follows:
1. (First character) open parenthesis
2. Followed by any recognized date format (slash will be used to separate the date segments)
3. Closed parenthesis
4. Followed by item description
I need help creating two new formulas, the invoice date formula and the description formula.
Your assistance is greatly appreciated.
Ingrid
The client instructions for formatting from the description field were as follows:
1. (First character) Open parenthesis
2. Followed by mm/dd/yyyy date format (slash will be used to separate the date segments).
3. (Eleventh character) Closed parenthesis
4. Followed by item description
Example: (12/15/2010)office supplies
I used the following formula to create the invoice date field:
If left({ProcItem.description}, 1) = chr(40) then
datevalue(Mid ({ProcItem.description}, 2,10))
And I used the following formula to create the item description field:
If left({ProcItem.description}, 1) = chr(40)
then Mid ({ProcItem.description}, 13)
else {ProcItem.description}
They have recently decided they would like to be able to enter the date using any recognized date format. The updated instructions are as follows:
1. (First character) open parenthesis
2. Followed by any recognized date format (slash will be used to separate the date segments)
3. Closed parenthesis
4. Followed by item description
I need help creating two new formulas, the invoice date formula and the description formula.
Your assistance is greatly appreciated.
Ingrid