How can I truncate data in a MS Access Field? - TechRepublic
Question
April 16, 2007 at 08:40 AM
joe.a.grabman

How can I truncate data in a MS Access Field?

by joe.a.grabman . Updated 19 years, 2 months ago

Using Google, I found the following update query posted by Tony Hopkinson in Mar 2005:

update mytable set ssn = right$(ssn,4)

I tried this and it works for all MS Access databases that I have except for one. In that database, I get the following error when I run the query:

Compile error. in query xpression ‘right$(ssn,4)

Any suggestions would be greatly appreciated.

Semper Fidelis,

Joe Grabman

This discussion is locked

All Comments