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

Eliminating leading spaces in a field using an Update Query 1

Status
Not open for further replies.

texan1956

IS-IT--Management
Mar 26, 2001
4
US
I need to know how to use an Update Query to eliminate leading spaces in a table. As a fairly new Access user, this is something I have not done. Thanks in advance for any help!
 
Create an update query including all fields you want to remove the leading spaces from.

In the UpdateTo boxes put LTRIM(<fieldname>) for each field.

Instead of LTRIM(), RTRIM() removes trailing spaces and TRIM() will remove both.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top