weird character will not disapper after trim update

access 2003
need a function if necessary please...or update statement

I have a field in a table that has a box character at the end of the field.

I tried using:
UPDATE SapAlt_Staging_Prmdb025 SET SapAlt_Staging_Prmdb025.alt_acc_material_no = Trim([alt_acc_material_no]);


but the character will not go away ?
see pic below

Thanks
fordraiders


weird-character.png
LVL 3
FordraidersAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
you can not remove that weird character with a trim()

if you want the first 6 characters, use

left([fieldName],6)  


update table
set [fieldName]=left([fieldName],6)  
Rey Obrero (Capricorn1)Commented:
you can also use the replace() function, but you have to know the ascii value of thet weird character.

try this

 update table
set [fieldName]=replace(replace(replace([fieldName],chr(13) & chr(10),"") ,chr(13),""),chr(10),"")
Rey Obrero (Capricorn1)Commented:
try this

 update table
set [fieldName]=replace(replace(replace(replace([fieldName],chr(13) & chr(10),"") ,chr(13),""),chr(10),""),chr(9),"")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nick67Commented:
That weird character looks suspiciously like a carriage return
In a query with that field throw this in a column

LastChar: Asc(Right([alt_acc_material_no],1))

That'll give you the Chr() number for that character.
Once you've got it, then
UPDATE SapAlt_Staging_Prmdb025 SET SapAlt_Staging_Prmdb025.alt_acc_material_no = Replace([alt_acc_material_no],Chr(WhateverThatChrNumberIs),"");
Ought to work when you replace WhateverThatChrNumberIs with the value you discovered earlier.
 
FordraidersAuthor Commented:
Thanks to both
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.