Listbox setup as value list
Need to populate the listbox with items and each item has a special integer code associated with it.
How can we assign the code to each item in the listbox and also how can we extract which item has been selected in the click event (multiselect is disabled) so that we get the selected item's code
Example:
set rs=currentdb().openrecordset("Select item_name, item_id from items")
do while not rs.eof
lstitems.additem rs![item_name] << would like to add the item_id as an identifier to this item>>
loop
Thanks
Need to populate the listbox with items and each item has a special integer code associated with it.
How can we assign the code to each item in the listbox and also how can we extract which item has been selected in the click event (multiselect is disabled) so that we get the selected item's code
Example:
set rs=currentdb().openrecordset("Select item_name, item_id from items")
do while not rs.eof
lstitems.additem rs![item_name] << would like to add the item_id as an identifier to this item>>
loop
Thanks