Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Truncating a field in a table help 1

Status
Not open for further replies.

kswiss311

MIS
Sep 21, 2006
10
US
Hello,

I am trying to truncate one field in a table, however the field size is variable (the character lengths are 13, 14 and 15 characters long). What I was wondering is how I would truncate this field in Access so it takes just the last four characters?

Thank you,

Kent
 
Thanks a lot, the different character size was throwing me for a loop and did not know if this function would work.
 
I was wondering how I would go about using this truncation method on one column in a table and putting the truncated records into another column in the same table?

Thanks, Kent
 
Like this (SQL code) ?
UPDATE yourTable SET [another column] = Right([one column], 4)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top