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!

Problems with Formatting. 1

Status
Not open for further replies.
Your Your "Year/Month" formula {@Year}&"/"&{@Month Format}
IS producing a string output. When you use & to concatenate a number, it automatically formats it to have two decimal places.

Try Totext({@Year},0,"")+"/"+Totext({@Month Format},0,"")

the ,0,"" part of the totext function tells crystal to convert the number {@Year} and {@Month Format} to a string but put 0 decimal places and use "" (empty string) as the thousands separator.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top