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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a Access Form Listbox with VBA

Status
Not open for further replies.

Y2KCobra

IS-IT--Management
Mar 11, 2003
15
GB
Greetings to all

The problem I am having is I am desparetly trying to figure how to populate and retrieve data from a 3 column listbox. I would be greatful for a code example or a good point into the right direction.

Thank you in advance,

Steve
 
How are ya Y2KCobra . . .

WE HAVE NO Idea what you want until you be more specific!

Calvin.gif
See Ya! . . . . . .
 
lol... Picture a form with multiple list boxes.
1) Holds table field names
2) Will hold the headers from a read-in CSV file

User will select 1 for each to establish a mapping and add it to the mapping list box

Ex in Mapping box

[Col1] Department [Col2] <-> [Col3] CityDepartment]

Once the administrator maps all of the values in the 1) listbox and they click save I will need to extract all listbox rows/column data from the mapping listbox.

Does this help?
 
Listboxes have a "column" property.
And an "ListIndex" Property.
And a "SElected" property
And A "ListCount" property
And an "Add" method,

Between these, you should be able to accomplish your desired task.


 
Have a look at the [blue]RowSource[/blue] property of the listbox . . .

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top