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!

Ignore Blank Fields When Concatenating

Status
Not open for further replies.

docar

Technical User
Nov 20, 2002
12
US
I'm concatenating 3 fields like this:

FullName: [LNAME] & " " & [MNAME] & " " & [FNAME]

If the MNAME field is blank, then there are 2 blank spaces in between LNAME and FNAME.

How can I get rid of this extra blank space?

Thanks in advance.
 
Try replacing one of the ampersands (&) with pluss (+):

[tt]FullName: [LNAME] & " " + [MNAME] & " " & [FNAME][/tt]

Roy-Vidar
 
Beautiful! Thanks a lot Royvidar!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top