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!

Problem formatting field

Status
Not open for further replies.

cmcgann

Programmer
May 31, 2000
22
0
0
IE
Hello All<br><br>I am running a report that queries a text field. the Text field looks like this : 0000000002000 Is there any way i can run a report that will remove the last 3 zero's <br><br>I tried the right(,3) function but to no Avail. <br><br>Thanks for your help&nbsp;&nbsp;<br>
 
The function you used will return the 3 zero's to the right.<br><br>I would use:<br>Left({table.Field},(length({Table.Field} - 3)))<br><br>That would take care of variable length values in the field as well.
 
Take a look at Mid (str, start), Mid (str, start, length)<br>in the Crystal help files.&nbsp;&nbsp;That should do the trick. <p>LindaC<br><a href=mailto:lcastner@co.orange.ny.us>lcastner@co.orange.ny.us</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top