Listbox being poplutaed with Access database.

Jul 22 2004 8:52 PM
Hi. This is using VB.NET and Access. I am populating a listbox via datasource from an Access Database on FormLoad. I have the listbox set for multi selection. My problem is when I attempt to retrieve the selected items I am getting errors. I have been trying to use the SelectedItems of the ListBox. If I take away the DataSource and load the contents manually, it works fine. I am thinking that using ADO you must retrieve the selected items a different way, but I cannot find anything on the net for a solution. Any help would be greatly appreciated. Thanks

Answers (23)