My first post explained how I have to come up with a formula that converts a number to a field. An example of the data looks like this:
172,954 (is really military time for 00:17:29:54)
1,365,765 (is really military time for 01:36:57:65)
16,293,935 (is really military time for 16:29:39:35)
I need to convert my field, which is in number format to a time field (hh:mm:ss OR hh:mm) so that I can give my crystal report parameters and let the user define a date range based on two different fields that I need to convert as explained.
My formula (pasted below) tests as no errors found, but when I run the report, I get a numeric overflow message and it points back to the formula. Any help is greatly appreciated. I think maybe I have a parenthesis out of order or something simple, but haven't been able to find it thus far.
ctime(truncate(({CADLOG.CADLOG_ARRIVAL_TIME}/100000000)*100),
((truncate(({CADLOG.CADLOG_ARRIVAL_TIME}/1000000),2))-
(truncate({CADLOG.CADLOG_ARRIVAL_TIME}/1000000))*100),
((truncate(({CADLOG.CADLOG_ARRIVAL_TIME}/10000),2))-
(truncate({CADLOG.CADLOG_ARRIVAL_TIME}/10000)*100)))
172,954 (is really military time for 00:17:29:54)
1,365,765 (is really military time for 01:36:57:65)
16,293,935 (is really military time for 16:29:39:35)
I need to convert my field, which is in number format to a time field (hh:mm:ss OR hh:mm) so that I can give my crystal report parameters and let the user define a date range based on two different fields that I need to convert as explained.
My formula (pasted below) tests as no errors found, but when I run the report, I get a numeric overflow message and it points back to the formula. Any help is greatly appreciated. I think maybe I have a parenthesis out of order or something simple, but haven't been able to find it thus far.
ctime(truncate(({CADLOG.CADLOG_ARRIVAL_TIME}/100000000)*100),
((truncate(({CADLOG.CADLOG_ARRIVAL_TIME}/1000000),2))-
(truncate({CADLOG.CADLOG_ARRIVAL_TIME}/1000000))*100),
((truncate(({CADLOG.CADLOG_ARRIVAL_TIME}/10000),2))-
(truncate({CADLOG.CADLOG_ARRIVAL_TIME}/10000)*100)))