M
MVP - WannaB
Hi, I am trying to remember how to search text field for the second
occurrence of a string, but something is not working for me. If anyone can
help I would greatly appreciate it.
I am creating a calculated field in a query to verify the results of each
piece before I put everything together to pull 7 different strings from this
one text field. Here is what I have so far and it comes back as the same
starting place as the first occurrence>> BPS2:
InStr(InStr(1,[t_transactions]![pricing]," ",1),[t_transactions]![pricing],"
",1)
I expected that would find the second occurrence of double spaces, I would
then need to subtract from the initial location to acquire the length of the
string I need. As I said I need to do this 7 different time to pull data out
of this one text field and parse it out to new fields.
I also seem to remember using a function some time ago that accepted a param
allowing you to select which occurrence of a string you wanted to retrieve.
Is there such a function in Access ??
occurrence of a string, but something is not working for me. If anyone can
help I would greatly appreciate it.
I am creating a calculated field in a query to verify the results of each
piece before I put everything together to pull 7 different strings from this
one text field. Here is what I have so far and it comes back as the same
starting place as the first occurrence>> BPS2:
InStr(InStr(1,[t_transactions]![pricing]," ",1),[t_transactions]![pricing],"
",1)
I expected that would find the second occurrence of double spaces, I would
then need to subtract from the initial location to acquire the length of the
string I need. As I said I need to do this 7 different time to pull data out
of this one text field and parse it out to new fields.
I also seem to remember using a function some time ago that accepted a param
allowing you to select which occurrence of a string you wanted to retrieve.
Is there such a function in Access ??