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!

List box - <ctrl> key functionality

Status
Not open for further replies.

lachesis

Technical User
Sep 25, 2002
138
NZ
Ive never used list boxes before, but they look suited to my purpose. However given my limited knowledge I'd appreciate some feedback.

Is it possible to use a list box in combination with the keyboard <ctrl> key, in order to make multiple selections??

If multiple selections are posiible how do you handle the resultant data stream from the list object?

eg.
I have Range items, and I want to associate Product items with Ranges. A list box would short-cut the process of individually adding Product items one at a time, if I could somehow <ctrl>-click multiple items in a list box and associate the resultant data with the single Range.

Any feedback appreciated.
thanks
 
For the list box you will need to set the multi select option to extended which will let you select multiple items.

The Selected property will let you write code to get the list of items selected.


Steve
 
Thanks Steve. Ive written code to do everything else but Refresh the listbox.

I want to deselect the list items that the user has selected, without doing a requery of the whole form.

Are you familiar with a Control(s) command that serves this purpose?



L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top