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!

How to format number in formula? 1

Status
Not open for further replies.

alexbelovtt

Programmer
Nov 15, 2005
51
US
Sorry for simple question.
I need to display “pseudo recordset” count:
“Record 1 of 5” and so on.
I have formula:
"Record " + CSTR({Param.RecordNumber}) + " of " + CSTR({Param.RecordsCount})
CSTR is reuqred to build string, but as result I have display:
“Record 1.00 from 5.00”
How can I format number to display right values?
1 instead of 1.00
Thank you.
Alex.
 
Change it to:

"Record " + CSTR({Param.RecordNumber},0,"") + " of " + CSTR({Param.RecordsCount},0,"")

The 0 removes the decimals and the "" removes the divider, e.g., the comma.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top