Mar 16, 2004 #1 chexsp Technical User Joined Mar 16, 2004 Messages 8 Location 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 Joined Apr 26, 2001 Messages 842 Location 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 Joined Jun 16, 2000 Messages 6,606 Location NO Forgot to post here too, crossposted thread702-800532. Roy-Vidar Upvote 0 Downvote