I have a groupFooter textbox which I am trying to display the Total amount of money for a group.
I cannot figure out the expression value to set to get it to format correct. I'd like to use ToString('$#,0.') and this is what I have but it is giving a IFormat error.
textbox.Value = CINT(SUM(FundingValue)).ToString('$#,0.');
gives: Object of type System.String cannot be converted to System.IFormatProvider. (guessing CINT cast didnt work?)
textbox.Value = SUM(FundingValue).ToString('$#,0.');
gives Cannot interpret token '.' at position x.
FundingValue is of type decimal.
Any help appreciated.
Regards,
Jason
I cannot figure out the expression value to set to get it to format correct. I'd like to use ToString('$#,0.') and this is what I have but it is giving a IFormat error.
textbox.Value = CINT(SUM(FundingValue)).ToString('$#,0.');
gives: Object of type System.String cannot be converted to System.IFormatProvider. (guessing CINT cast didnt work?)
textbox.Value = SUM(FundingValue).ToString('$#,0.');
gives Cannot interpret token '.' at position x.
FundingValue is of type decimal.
Any help appreciated.
Regards,
Jason