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

Find Text Between { and }

Status
Not open for further replies.

eao

MIS
Nov 14, 2001
104
US
So I need to write a query to extract the value between two braces { }. Using the subject line as an example, I want to return the value " and ". I know how I'd do this in SQL, but I can't figure out the equivalent substr function in Jet SQL.
 
Try
Code:
Mid (TheString, Instr(TheString, "{")+1, _ 
                Instr(TheString, "}") - Instr(TheString,"{") - 1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top