Click to See Complete Forum and Search --> : List Box Help


SgiGod
January 9th, 2000, 08:12 PM
I would like to get data from my Access database and have it come up in a list box similer to a grid And i need a bar in the list box to pick a row of text.

Leo Koach
January 9th, 2000, 09:54 PM
You will have to use List View.

I am puting here a sample. You have to set up the ListView from Properties : View = lvwReport

Dim itmX As ListItem

ListView.ColumnHeaders.Add , , "Fields", 1500
ListView.ColumnHeaders.Add , , "Code", 2500

Set itmX = frmList.lvw1.ListItems.Add(, , "Field")itmX.SubItems(1) = Left(CodesForFields, "Other Field")

Check your MSDN Help for more info

Good luck