Supress Spaces

G

Guest

Can someone please give me a way to remove spaces from a string.... Here's what I hav

A Document number field that can be about any length. In trying to compare this document field against what should be the same field coming from another source I find that the compare fails when there are trailing spaces included in one of the tables. I want to run an update query that will remove the extra blank spaces from all records in the document number field. My compare ought to work then

Thanks for any advice !

Bill
 
L

Les

Look at Trim functions. There is Trim, LTrim, and Rtrim.
They get rid of spaces.

-----Original Message-----
Can someone please give me a way to remove spaces from a
string.... Here's what I have
A Document number field that can be about any length.
In trying to compare this document field against what
should be the same field coming from another source I find
that the compare fails when there are trailing spaces
included in one of the tables. I want to run an update
query that will remove the extra blank spaces from all
records in the document number field. My compare ought to
work then.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top