Parsing data

G

Guest

I'm trying to parse the following string of data and pull out the text from
the right to left up until the fist instance of "\".

SAMPLE TEXT:
C:\VCCT Training DB\Excel IO\S M 1\Testing Name Fields.csv

This is actually only a sample of the text I will need to parse. It will
always be a path and file name, always a .csv, but the path and file name
will change.

Much thanks!
Clint Herman
 
J

John Nurick

Or if you're using Access 2002 or later,

Mid(strText, InstrRev(strText, "\") + 1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top