Selected item in listbox or combobox

S

schuh.mike

I have a command button that opens a new form based on a listbox selection.
However, when you go through the command button wizard, it works great for a
text box, but does not generate the correct code for a listbox or combobox.
What command grabs the selected item in a listbox or combobox?
 
C

Charles E. Vopicka

the name of the listbox or combobox .value


eg. MyList.Value


that is just off the top of my head i can check if it doesn't work.
that will return the displayed / selected value.

schuh.mike said:
I have a command button that opens a new form based on a listbox selection.
However, when you go through the command button wizard, it works great for a
text box, but does not generate the correct code for a listbox or combobox.
What command grabs the selected item in a listbox or combobox?


--
Charles E. Vopicka's (Chuck) : (e-mail address removed)

Database Management, GIS Specialist and Research Assistant

Forest Biometrics Research Institute
University of Montana - College of Forestry and Conservation
Missoula, MT 59812
United States of America

Phone:
(406)243-4526
(406)243-4264
(406)549-0647 (Home)

:) HAVE A NICE DAY (-:

"UNLESS" (The Lorax, by Dr. Seuss)
 

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

Top