May 4, 2005 #1 nickotine Programmer Nov 27, 2001 23 GB I have a field which I need to remove the last 2 characters from. I.E. 123h456789d-C1#* this needs to read 123h456789d-c1 I have tried Trim and Left to no avail. Help Please. Nickotine.
I have a field which I need to remove the last 2 characters from. I.E. 123h456789d-C1#* this needs to read 123h456789d-c1 I have tried Trim and Left to no avail. Help Please. Nickotine.
May 4, 2005 1 #2 dhulbert Technical User Jun 26, 2003 1,136 GB Try something along the lines of left(fieldname,length(fieldname)-2) Upvote 0 Downvote
May 4, 2005 Thread starter #3 nickotine Programmer Nov 27, 2001 23 GB Hi thanks for the reply, I did forget to mention that the field i need to remove the last 2 characters is a varable length. Upvote 0 Downvote
Hi thanks for the reply, I did forget to mention that the field i need to remove the last 2 characters is a varable length.
May 4, 2005 #4 dhulbert Technical User Jun 26, 2003 1,136 GB That will still work. you just nee dot do something to avoid 0,1 or 2 character fields such as if length(fieldname) > 2 then code here Upvote 0 Downvote
That will still work. you just nee dot do something to avoid 0,1 or 2 character fields such as if length(fieldname) > 2 then code here
May 5, 2005 Thread starter #5 nickotine Programmer Nov 27, 2001 23 GB Thanks for the help finally got it to work. Cheers, Nickotine. Upvote 0 Downvote