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

How to display a field up to a point 1

Status
Not open for further replies.

kenp705

Technical User
Jul 7, 2006
15
US
I am using Crystal 11 and WinXP. I have a field called Nature.Code in which there are text strings like BUVE-Burglary of Vehicle. I need to create a new field that looks at this field and returns everything up to the "-". It is not always the first 4 characters. I am new to this and am sure there is an easy answer. Any help is much appreciated.....
 
Create a formula, something like this:

Left({table.field}, (InStr({table.field}, '-') - 1))

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Thank you very much. Works like a charm.......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top