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

Separate First Name and Last Name without Space 1

Status
Not open for further replies.

gsmithmme

Technical User
Jun 3, 2004
51
US
I am using Crystal 8.5 with a Paradox database. I have a field with a full name (Fred Bloggs) and I need to create a salutation in a cover letter. "Dear Fred," Currently, I use this formula:

"Dear " +Left({Jobs.Contact},InStr({Jobs.Contact}," "))+","

However, when it runs it shows

Dear Fred , instead of Dear Fred, (notice the space after Fred?)

Looking for a way to remove the space. I tried inserting formula into a text box and adding the , but the space is part of the formula.

Any suggestions are appreciated..
 

You were so close -

"Dear " +Left({Jobs.Contact},InStr({Jobs.Contact}," ")-1)+","

 
Ta da! Thanks Brian.. Tell Stewie I said hey! :) (I knew Peter could never handle that!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top