Trim function in query

VegaLA

Registered User.
Local time
Today, 02:46
Joined
Jul 12, 2006
Messages
101
Hi all,
I have a local table that has data imported from a spreadsheet
and we have discovered that one of the fields brings in trailing spaces. Since the Access DB has some querys to manaipulate the data I thought I would just create a qry that would trim the value of that field but I am getting error messages when I try to run the query.
Basically it is a update query with the field value written as:-

Code: Trim(
Code:
)

I am leaving the update field in the qry blank and it complains about it not having  a destination field which is understandable so how do I go about trimming the value of a field in a query. Is it even possible ? 

Thanks in advance,
Mitch....
 
The 'Trim(
Code:
)' should go in the 'update to' line and the 'code' fld name should be on the 'field' line.

And 'code' is a bad fld name :)
 
Thanks Ken,
yes, 'code' is a bad field name but I dare not mess with it myself being the new guy here. I usually play it safe with field names.

Cheers again.

Mitch.........
 

Users who are viewing this thread

Back
Top Bottom