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

Getting rid of Decimal places in a formula

Status
Not open for further replies.

SDS100UK

MIS
Jul 15, 2001
185
GB
Hi

I have two concatenated fields, 1 text and 1 number.

When I put the 2 together in a third, the number bit has 2 decimal places, which I cannot seem to remove.

How do I do this?

In the Number field on its own there is no decimal places, they only appear in the concatenated field.

Hope someone can help me,

TIA

Steven
 
Use:
---------------------------------------
{str_Field1} + ToText({num_Field},0,"")
---------------------------------------

Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
{Field1}+totext({Field2},0)

Should do it I believe. Learn something new every day *:->*
AyJayEl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top