If Then Combobox

  • Thread starter Thread starter Bishop
  • Start date Start date
B

Bishop

I have a combobox (rating) with the following list "G, PG, PG-13, R, NC-17,
X, NR". I want to be able to do the following: tab to rating, then
if "g" then select G and tab
if "p" then select PG and tab
if "3" then select PG-13 and tab
if "r" then select R and tab
if "7" then select NC-17 and tab
if "x" then select X and tab
if "n" then select NR and tab
where "g" means I press the g key, etc, and tab means whenever I select the
appropriate key the corresponding selection is made and automatically tabs to
the next combobox.
 
Try using a select statement within the Keypress event of the Combobox.
Within each case set the Listindex of the Combobox to match the value.

If this post helps click Yes
 
I'm sorry but I don't know what a "select statement", "Keypress event"
is/does. And I'm still a little fuzzy on what "Listindex" does or where it
is. Can you be more descriptive? Maybe give me an example?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top