Mar 26, 2002 #1 ovie52 Technical User Feb 5, 2002 11 GB I HAVE ENTRIES IN A FIELD IN A TABLE SUCH AS: 5100V#74853769376 4100#8957984768745 5180#89745967 I WANT TO TRIM THEM FROM THE '#' ONWARDS. I.E. SO THEY READ 5100V 4100 5180 CAN ANYONE HELP?
I HAVE ENTRIES IN A FIELD IN A TABLE SUCH AS: 5100V#74853769376 4100#8957984768745 5180#89745967 I WANT TO TRIM THEM FROM THE '#' ONWARDS. I.E. SO THEY READ 5100V 4100 5180 CAN ANYONE HELP?
Mar 26, 2002 1 #2 mdthornton Programmer Jul 18, 2001 254 US try this expression: left([myStr], instr(1,[myStr],"#",1) -1)) this assumes that there will always be a "#" Best Regards, Mike Upvote 0 Downvote
try this expression: left([myStr], instr(1,[myStr],"#",1) -1)) this assumes that there will always be a "#" Best Regards, Mike
Mar 26, 2002 #3 B827 Technical User Feb 14, 2002 281 GB Or does it require: Right([Mystr],Len([Mystr])-Instr(1,[Mystr],"#") which will produce 74853769376 8957984768745 89745967 in the above example Sandy Upvote 0 Downvote
Or does it require: Right([Mystr],Len([Mystr])-Instr(1,[Mystr],"#") which will produce 74853769376 8957984768745 89745967 in the above example Sandy
Mar 26, 2002 #4 B827 Technical User Feb 14, 2002 281 GB Oops, should read more carefully- sorry about that Sandy Upvote 0 Downvote