Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hoe do I convert decimals to hh:mm in both main report & sub report???

Status
Not open for further replies.

Toni1

Vendor
Apr 9, 2003
1
AU
Hi, I am using crystal 8.5, I need to convert decimals 8.5 to hh:mm 8:30 in my main report and then in the summary in my sub report.
I have used the following formula and it works in the main but not in the sub. any help would be apprecciated

replace(totext (int ({ta_emp_pay_entitlements.pay_amount})+ (remainder ({ta_emp_pay_entitlements.pay_amount},1)*60/100)),'.',':')

thanks in advance

 
Check this thread: thread767-712606.

-dave
 
Can you provide an example of where it doesn't work in the subreport? Rather than saying something doesn't work, try qualifying/quantifying.

You may have some problems with rounding, otherwise the formula looks OK.

An alternative might be to convert evyrything to seconds and then use part of the formulas in my FAQ:

faq767-3543

-k

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top