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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove letter from end of field data 1

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
US
I have a field in Access where there are six numbers and a U at the end of the six numbers. Is there a way I can run a query or something to get rid of the U at the end of each of the numbers?
 
You can update like so:

Left(fld,Len(fld)-1)
 
Remou,

Thanks for your help.

Where do I put the code to update the table.

Also, I should have said that each data field has 6 numbers and then the U:

123456U



 
The line I posted will remove the last character of the field, regardless of length, so you may wish to test that the last character is a U. You can use the above in an Update query, being careful to back-up first:

[tt]UPDATE tblTable SET fld = Left(fld,Len(fld)-1)[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top