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

How to remove spaces from a name in the name field? 2

Status
Not open for further replies.

tekvb1977

Technical User
Nov 16, 2005
46
US
I have a table that has two fields:

LName and FName

I am trying to concatenate both fileds like:

Name: [FName] & [FName]

in a query.

However, the expression Name comes back with spaces like

Heather Brooks

How could I get rid of the spaces so that my query shows me

Heather Brooks instead of Heather Brooks

I tried to use the Left function but it's not giving me what I want.

Thanks in advance.

J




 

Hi,
Code:
Name: trim([FName]) & " " & trim([FName])

Skip,

[glasses] [red]Be Advised![/red] For those this winter, caught in Arctic-like calamity, be consoled...
Many are cold, but few are frozen![tongue]
 
Try the Trim, LTrim and RTrim functions.

Have fun! :eek:)

Alex Middleton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top