I want to format SOOrder.CuryLineTotal to read like 1,000.00 across the entire document. This is due to a formatting issue when having the report do math to the SOOrder.CuryLineTotal value. After the math, it comes out with no comma and more than two decimal places despite the ‘format’ column having of the text box having the right information. Any solutions?
All calculated fields do that. Add in CuryLineTotal as a schema field like below and this will resolve your issue.
All calculated fields do that. Add in that CuryLineTotal as a schema field like below and this will resolve your issue.
Report designer can be trickier. After an equation, you may need to convert the answer using CInt([table.field]) or CDec((table.field]) and then use the field you want your calculated field to look like in the format line.
If you want a dollar sign, use c instead
I use #,##0.00 in the format property like so:
Report designer can be trickier. After an equation, you may need to convert the answer using CInt([table.field]) or CDec((table.field]) and then use the field you want your calculated field to look like in the format line.
If you want a dollar sign, use c instead
wrap each of those IIFs in a into a CStr() or CDec() like so...
=CStr(IIF([SoOrder.TermsID]=’5050’,SoOrder.CuryLineTotal + 0.50, ‘’)) + CStr(IIF(…..)) + CStr(IIF(…..))
Then format =aSoOrder.LineTotal]
I believe that will work...Let us know!
wrap each of those IIFs in a into a CStr() or CDec() like so...
=CStr(IIF([SoOrder.TermsID]=’5050’,SoOrder.CuryLineTotal + 0.50, ‘’)) + CStr(IIF(…..)) + CStr(IIF(…..))
Then format =aSoOrder.LineTotal]
I believe that will work...Let us know!
Just so the solution is clear for the future, you do not need the CDEC in front as the result was already a decimal. The only thing needed is #,##0.00 in the formatting property.
Glad you got it working!
I just confirmed for myself that Alex’s formula worked without the number conversion. As well as a lot of my own formulas .Thanks
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.