View Full Version : Obtaining selected item multi select list box


Essendon
05-14-2002, 07:11 PM
Hi,

I have a simple multi-select list box. I can select multiple items from the list box. But when I double click on an item in the list box, I want to be able to bring up another form showing the record that relates to the Name in the list box.

All I need is to be able to detect a double click on the list box and then figure out which item was clicked..

Thanks in advance for any clues.....

Peter

P.S. This list box in question is not bound to the form.

[This message has been edited by Essendon (edited 05-14-2002).]

Pat Hartman
05-15-2002, 07:02 PM
If you don't really need to select multiple items from the listbox, change its multi select property to None.

Put your OpenForm code in the double click event of the listbox.

Essendon
05-15-2002, 07:23 PM
That's how I have it at the moment. But I need to be able to multi select because the listbox's purpose is to allow the user to select a random amount of records to filter a report....

thanks for your reply.