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

Add leading ***** and a $ sign to check report 1

Status
Not open for further replies.

GCL2007

IS-IT--Management
Dec 11, 2007
167
0
0
US
Hello,
I am trying to create a report for check writing. The request was to format the amount value like this: ************$123.44 with the leading *s and a $ immediately preceding the field value(which is 123.44)
I would like the total field to be a fixed size, so if the value was larger, I would require less * characters preceding the $ and field value. Any thoughts?
Thanks!!!!!
 
I'd use a formula lke this:

[Code {@DisplayFormula}]
Right('*********************$' + ToText({Table.Field},2,','), 20)
[/Code]

Depending on the fixed width you want to achieve you will need to play around with the number of "*" in the formula, and/or the number of characters applying to the "Right" function. I've also assumed you want a "," as the thousands separator - amend this as required.

Hope this helps.

Cheers, Pete.
 
Thank you Pete - I think that will work for me..
Thanks!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top