M
Mikael Lindqvist
Good morning everyone,
I know that the function "Instr" is very useful for finding starting
position of a particular "string" in a string.
However, in my case I have a text field that contains up to 9 values that I
want to extract, each value is seperated by a semicolon.
So I figured I create 9 queries, extracting the 1st, 2nd, 3rd,....9th value
from the master string. Then I'll have a "union query" for all 9 queries to
normalize the values in a tableform.
Now to my question: While it's straightforward to search for first and
second occurance of a string, after that the query grows really big... here's
the query for 2nd occurance of ";".
Instr(Instr([NotesTxt];";")+1;[NotesTxt];";")
After that I guess I'll just keep nesting the "Instr" function... but I hope
there's a more simple way to find the starting position for ";" than using
this kind of "nested" logic???
Any help as always much appreciated!
Kindly,
Mikael
Sweden
I know that the function "Instr" is very useful for finding starting
position of a particular "string" in a string.
However, in my case I have a text field that contains up to 9 values that I
want to extract, each value is seperated by a semicolon.
So I figured I create 9 queries, extracting the 1st, 2nd, 3rd,....9th value
from the master string. Then I'll have a "union query" for all 9 queries to
normalize the values in a tableform.
Now to my question: While it's straightforward to search for first and
second occurance of a string, after that the query grows really big... here's
the query for 2nd occurance of ";".
Instr(Instr([NotesTxt];";")+1;[NotesTxt];";")
After that I guess I'll just keep nesting the "Instr" function... but I hope
there's a more simple way to find the starting position for ";" than using
this kind of "nested" logic???
Any help as always much appreciated!
Kindly,
Mikael
Sweden