I have a listbox that binds to a data control which sources it's data from a table called RoadMap in an access database. As a result I currently get a list of "names" in the list when the program is run. What I would like to do is get the "name_id" (which is part of the same row in the database: name_id, name, third_field, and so on...) from the row/entry in the listbox that the user ultimately selects and populate a variable that will hold the selected "name_id".
The problem I am running into is that the listbox DataField property will only allow me to specify a single field to display in the listbox, so does that mean that is the only field available in the list? or is the data for the entire row in the table available? if it is, how do I get the "name_id" from the selected row? maybe I should be using some other approach?