Parsing (Mid, InStr) Question

G

Guest

I know the 1 in the InStr(1,[Field], ",") expression starts at the first
position, and finds the first occurrence of the comma, but what if you need
the second occurrence of the comma?
 
P

pietlinden

Sharon said:
I know the 1 in the InStr(1,[Field], ",") expression starts at the first
position, and finds the first occurrence of the comma, but what if you need
the second occurrence of the comma?

put another InStr inside that to find the first one, then start at the
next position
InStr(1,[Field], ",") +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