G
Guest
Hi All,
I have a text box that has an input mask (>LLL\ 0000;0;_ displays as "GLN
0123" for example). The first three letters of the text box indicate a region
of the UK, e.g. GLN = Greater London, ESX, HER, STA, BED (and about 30
others) = SOUTH, and GWT, HUM, DUM, (and another 20-30) = NORTH.
The combo box contains: GLN, SOUTH, NORTH.
What i would like is for the combo box to be automatically populated with
GLN, SOUTH, and NORTH when the first three letters of the text box are
entered with the same prefixes. The 4 numbes after don't matter.
I have tried doing this in the onChange event in the text box, but i can
only do it for the whole input mask, i.e. "GLN 0123" would bring up "GLN" in
the combo box, but as there are thousands of different GLN's, this would
obviously become very unmanageble and long!
How can i only use the first three letters prefix of the text box?
Im ok in VB, but not advanced by any means.
Thanks in advance!
Remy
I have a text box that has an input mask (>LLL\ 0000;0;_ displays as "GLN
0123" for example). The first three letters of the text box indicate a region
of the UK, e.g. GLN = Greater London, ESX, HER, STA, BED (and about 30
others) = SOUTH, and GWT, HUM, DUM, (and another 20-30) = NORTH.
The combo box contains: GLN, SOUTH, NORTH.
What i would like is for the combo box to be automatically populated with
GLN, SOUTH, and NORTH when the first three letters of the text box are
entered with the same prefixes. The 4 numbes after don't matter.
I have tried doing this in the onChange event in the text box, but i can
only do it for the whole input mask, i.e. "GLN 0123" would bring up "GLN" in
the combo box, but as there are thousands of different GLN's, this would
obviously become very unmanageble and long!
How can i only use the first three letters prefix of the text box?
Im ok in VB, but not advanced by any means.
Thanks in advance!
Remy