A
aft3rgl0w
Hello, I'm trying to lookup a value in a textbox on a form. It is in the
format ##a (number-number-letter) and indicates a cycle (such as 07D, 06G,
etc). I am currently using the instr function, trying the following:
varCycle = Instr(Text5,"[0-9][0-9][a-k]") which obviously does not work, as
it's looking for a literal string, not a range. Basically, I want to search
the textbox box for the cycle using the wildcards/ranges and assign it to the
variable. I'm probably way off course but I can't find any other info on
specifying a range of characters in a function. Any help is much appreciated
format ##a (number-number-letter) and indicates a cycle (such as 07D, 06G,
etc). I am currently using the instr function, trying the following:
varCycle = Instr(Text5,"[0-9][0-9][a-k]") which obviously does not work, as
it's looking for a literal string, not a range. Basically, I want to search
the textbox box for the cycle using the wildcards/ranges and assign it to the
variable. I'm probably way off course but I can't find any other info on
specifying a range of characters in a function. Any help is much appreciated