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

ACCESS Multi-trim

Status
Not open for further replies.

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?

 
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
 
Forgot to post here too, crossposted thread702-800532.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top