I have a table where column 1 contains coded information.
For my own reasons the data is in a coded e.g.
LA;FDAA2AX12F
in this case L= catagory
A=an index to the year
; is the month The character = the ascii character given by month number + 48
(chr(month)+48) November = 11 =
and so on
The other characters represent other things
What I want to do is filter the table by "L" AND 2nd chr = A and 5th chatacter = D
The first bit is easy
a="A"
table3.filter ("Column1 like 'L" & a & "*' ")
but how do I filter it further by the 5th character?
It seems that using the * stops me from any more filtering precision.
I know that * will act as a wildcard for anything following it. Is there an other wildcard character that can be used in place of a single character?
If the single wildcard is ! for example then I could filter it thus:-
a="A"
table3.filter ("Column1 like 'L" & a & "!!D*'")
or even
a="A"
x="D"
table3.filter ("Column1 like 'L" & a & "!!" & x & "*'")
Any ideas anyone?
Kintara
For my own reasons the data is in a coded e.g.
LA;FDAA2AX12F
in this case L= catagory
A=an index to the year
; is the month The character = the ascii character given by month number + 48
(chr(month)+48) November = 11 =
and so on
The other characters represent other things
What I want to do is filter the table by "L" AND 2nd chr = A and 5th chatacter = D
The first bit is easy
a="A"
table3.filter ("Column1 like 'L" & a & "*' ")
but how do I filter it further by the 5th character?
It seems that using the * stops me from any more filtering precision.
I know that * will act as a wildcard for anything following it. Is there an other wildcard character that can be used in place of a single character?
If the single wildcard is ! for example then I could filter it thus:-
a="A"
table3.filter ("Column1 like 'L" & a & "!!D*'")
or even
a="A"
x="D"
table3.filter ("Column1 like 'L" & a & "!!" & x & "*'")
Any ideas anyone?
Kintara
Last edited: