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!

prompt to select from a list box

Status
Not open for further replies.
Oct 22, 2001
215
US
I would appreciate if some one can help me. Thanks
I have got a command button, where I got a procedure that
needs to prompt user to select from a list and bring back to the list item selected. Some thing like this:

----
do some thing
do some thing
if not list1.listindex is selected
#go and select the list
show the list and wait
if the list is selected then
#come back with a value.
msgbox "You selected" & selected item

-----

My problem, from the command where make the listbox visible, does not wait or prompt user for a selection..
 
Hi,

if you want code to be excecuted when a selection is made, you have to put this code in the click event of the listbox. I think you putted all of the code in the same event where you show your listbox. Naturally all of the code is excecuted even after the list is shown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top