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

Display Text after a Particular Character in Field 1

Status
Not open for further replies.

kime1974

Programmer
Oct 30, 2006
36
0
0
US
I am using Crystal 8.5 and XI.

I would like to display a field in my report that displays the text after the "-" in the field. Here are some examples:

Field Data Formula should display
JYMC-M$1 M$1
C100MC-M$1P M$1P
BC3T5RDR-R$3/5M$1+ R$3/5M$1+

Any help with this?
Thanks!
Kim
 
Try:

If Instr({table.field},"-") > 0 then
mid({table.field},Instr({table.field},"-")+1)
else
{table.field}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top