List Box Problem

D

David Tunstall

Is there any way you can select two or more values from a
list box and then run a command. (Like holding Ctrl or
Shift to select more than one)

Thanks
David
 
J

Jacques

Hi

If your using Access 2002 in the properties of the Lst
choose in the Others Tab multiselect: Simple

To get the value of the rows use this code:

Dim VarCommande
For Each varCommande In Me.lstCommandes.ItemsSelected
intCommande = Me.lstCommandes.ItemData(varCommande)
Call Update(...)
Next varCommande

I hope this will help

Jack
 
G

Guest

Thanks for that.

Just one more question. Where would I put the code that
you gave me - Dim VarCommande..............

Thanks
David
 

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