Hi is it possible to use the
Ltrim(Rtrim(fieldname)) in a query? If not where should it go? I'm trying to clean up data and it's proving to truly cleaning 'wash, rinse, repeat...wash, rinse...etc'
I think you will find the entry is right trimmed automatically when entered in a form control. But, instead of LTrim() & RTrim(), you could use plain ol' Trim() which trims leading and training spaces.
But, back to your original question concerning use of trim functions in a query, yes you may. You can create an Update query where the Update To is the trim function
Code:
UPDATE {tablename} SET {tablename}.{fieldname} = Trim({fieldname})
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.