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

Text Formula Question

Status
Not open for further replies.

rhoneyfi

MIS
Apr 8, 2002
200
US
I have a field in my report called "Dealer_Name"..
Several of the Dealer_Name records go like this:
1SEAR
1AMEGL
etc...

Basically, I need to convert the first letter of the record to an asterix. Note: Some of the Dealer_Name records do not have a 1 as the first letter, thus these records do not need to be changed.
I know the coding is pretty simple...I just don't know the syntax. Thanks
 
You cannot convert the records in your database, but you can make a report of the records look this way. Is this what you want to do?

If so, here is the code:

if left({Dealer_Name},1)="1" then {Dealer_Name} else "*"&right({Dealer_Name},length({Dealer_Name})-1)

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top