G
Guest
Hi there,
I'm a bit stuck at the moment, so any help will be really handy!
I'm trying to split a column into several, and I know that there is a
character that is present to signify the end of each column (eg the data in
the column is "xxxxx<end>xx<end>xxxxxxx<end>x<end>xxxxxxxxxxx<end>". I know
that "instr" will find the first occurance of a given character, but how
would I get it to show me where the next one is, plus the ones after, as
there is no fixed position to start the "instr"?
The way i was going to do it for the first column was:
1:
Trim(Left([TmpData]![AllAddress],InStr(1,[TmpData]![AllAddress],"<end>")-1))
but I ran into trouble for the second column;
2: Mid([TmpData]![AllAddress],InStr(1,[TmpData]![AllAddress],"<end>")+1,100)
I put 100 characters in as I didn't know how to capture the length between
the first <end> and the next <end>
Does anyone have any idea how to solve this one? I'd really appreciate any
help here!
Thanks,
K
I'm a bit stuck at the moment, so any help will be really handy!
I'm trying to split a column into several, and I know that there is a
character that is present to signify the end of each column (eg the data in
the column is "xxxxx<end>xx<end>xxxxxxx<end>x<end>xxxxxxxxxxx<end>". I know
that "instr" will find the first occurance of a given character, but how
would I get it to show me where the next one is, plus the ones after, as
there is no fixed position to start the "instr"?
The way i was going to do it for the first column was:
1:
Trim(Left([TmpData]![AllAddress],InStr(1,[TmpData]![AllAddress],"<end>")-1))
but I ran into trouble for the second column;
2: Mid([TmpData]![AllAddress],InStr(1,[TmpData]![AllAddress],"<end>")+1,100)
I put 100 characters in as I didn't know how to capture the length between
the first <end> and the next <end>
Does anyone have any idea how to solve this one? I'd really appreciate any
help here!
Thanks,
K