Advertisement

07.17.2008 at 04:29AM PDT, ID: 23572776
[x]
Attachment Details

Access - Fill and read values from multiselect listbox

Asked by jdhackett in Access Forms, Microsoft ADP, Access Coding/Macros

Tags:

I wish to fill a listbox with vehicles, and let the user pick several of those vehicles.
The vehicles come from several different recordsets, so I just want to add values and not bind the listbox to a table/view. I'm adding the different vehicles into an array. The 'VehicleID' will be the position in the array.
So it breaks into two parts:

1) Add the Vehicles
I want to add 3 fields, as 3 columns in the list box.
VehicleID, VehicleReg,VehicleDescrip
How would I add these to the list box? A sample with just adding values will do, I know how to get them from the array

2) Read the multiselect
At the end, I want to know which VehicleIDs were selected. How do I do this?

Thanks

Start Free Trial
[+][-]07.17.2008 at 05:05AM PDT, ID: 22024461

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 05:39AM PDT, ID: 22024711

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, Microsoft ADP, Access Coding/Macros
Tags: Access VBA
Sign Up Now!
Solution Provided By: vadimrapp1
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.17.2008 at 06:33AM PDT, ID: 22025212

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628