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

Removing last letter of a string

Status
Not open for further replies.

billcub

Technical User
Nov 12, 2001
1
GB
In Access 97 can I remove the last letter of a Field [field1] using a query ?
 
yes.
in a blank column in the query put this:

NewText: Left([Field1],Len([Field1])-1)

this determines the length of your field (LEN), and subtracts 1 from that length. then takes the left part of the field that many characters (LEFT).

g
 
Hmmmmmmmmmmmmmmmmmmmmmm,

Only if " ... last letter ... " == Any Character AND the field is in fact a string field.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top