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!

Formula Assistance 1

Status
Not open for further replies.

TechUser23

IS-IT--Management
Mar 8, 2007
28
US
I think I need a formula versus using a text box in this scenario. I used a text box and dragged over the CustomerFirst, CustomerMiddle and CustomerLast Name fields. Whats happening now is if the customer doesnt have a middle name, its putting an extra space between the First and Last Names. Can I suppress the middle somehow if no middle name is there?

My fields:

CustomerFirst
CustomerMiddle
CustomerLast

 
Dump the text box. Too clumsy. Write a formula:

{FirstName}&" "&
if isnull({MiddleName}) then " " else {MiddleName}&" "&
{LastName}

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
HI,
OR ( there is always an Or)

After placing the fields in the text box, right-click on the box ( not on any of the included fields) and, using the format text option, select 'suppress embedded field blank lines'..

This is what is used for mailing Labels, for instance., where some may have more address lines than others..





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top