Mar 16, 2004 #1 chexsp Technical User Mar 16, 2004 8 CA I am in need of help. I need to trim multiple strings from a field in a Access database table. ie. "[ IGOTTOTRIMTHIS ]: NAME=MARK;ADDRESS=777 STREET;CODE=88" How would I just extract "MARK" using the proper SQL statement?
I am in need of help. I need to trim multiple strings from a field in a Access database table. ie. "[ IGOTTOTRIMTHIS ]: NAME=MARK;ADDRESS=777 STREET;CODE=88" How would I just extract "MARK" using the proper SQL statement?
Mar 16, 2004 #2 luceze Programmer Apr 26, 2001 842 US If the string is consistent with the above example then this should work: =Mid([test],InStr([test],"NAME=")+5,InStr([test],";")-(InStr([test],"NAME=")+5)) Just change [test] to your field name. HTH, Eric Upvote 0 Downvote
If the string is consistent with the above example then this should work: =Mid([test],InStr([test],"NAME=")+5,InStr([test],";")-(InStr([test],"NAME=")+5)) Just change [test] to your field name. HTH, Eric
Mar 16, 2004 #3 RoyVidar Instructor Jun 16, 2000 6,606 NO Forgot to post here too, crossposted thread702-800532. Roy-Vidar Upvote 0 Downvote