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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating problem

Status
Not open for further replies.

bravo6

IS-IT--Management
Mar 23, 2006
83
US
When false, the fomula in my report returns the expected (and desired)amount in currency format (eg $1000.00). When true, it returns the correct amount and the leading "*" but not in currency format (eg * 1000) I need that "*" to appear before the number when the statement is true but I'm sure that the "*" is what is causing the the currency format to fail. Is there a way to fix this?

thanks.

=IIf((([sumofcount])>0) And (Right([Agent Name],2)="TL"),("* " & (([periodcomp])/((([sumofcount]))*1.2))),(([periodcomp])/(([sumofcount]))))
 
How about:

[tt]=IIf((([sumofcount])>0) And (Right([Agent Name],2)="TL"), (Format(([periodcomp]) / ((([sumofcount])) * 1.2), """*""$#,##0.00")), (([periodcomp]) / (([sumofcount]))))[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top