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!

Field formatting in concatenation 1

Status
Not open for further replies.

LeBlatt

Programmer
Mar 20, 2002
32
FR
The formula "CMD" & Reservation.Id outputs "CMD1 234.00", but I want it to display "CMD1234". Format doent seem to work. the Id field is an integer in the database.
Anyone knows how to proceed ? Thanks in advance.
 
Dear Leblatt,

Try:

"CMD" & Totext(Reservation.Id,00)

HTH,

ro Rosemary Lieberman
rosemary@microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.
 
This works great. I was looking for some 'format' function.
You saved me from using :
Replace ("CMD" & Left(ToText ({Reservation.Id_Document}), Length (ToText ({Reservation.Id_Document}))-3), " ", "")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top