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!

Trimming spaces

Status
Not open for further replies.

Goalie3533

Programmer
Apr 14, 2004
53
US
I know you can remove leading and trailing spaces using LTrim or RTrim in a query however how would I go about removing any spaces from the middle of a string.
So, for instance, "How are you?" would become "Howareyou?".

Thanks in advance.

-Goalie35
 
Take a look at the Replace function.
Depending of your access version you may have to write your own public function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top