Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InputBox() associated to the drop-down list

Status
Not open for further replies.

nadjib

Programmer
May 14, 2003
23
CA
Hi evreybody,

How can I use the InputBOX() (or syntaxe), associated to a drop-down list.

Contrary to a traditional method, where the user writes a message, I want that it chooses in the list the value to be turned to the program
 
Hi!

To my knowledge you can't. You have a couple of choices:

First, create a popup form with a combo box on it allowing the user to choose from the list and storing the data chosen in whatever way is appropriate for your circumstance.

Second (and not as good), use the InputBox function and compare the input to your list and loop until they match something or give an error message if they don't match.

You can see why the second method isn't as good.

hth


Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top