G
Guest
I have a combo box called cboEquip. Its row source is a query that selects a
couple fields from an equipment table. (I use the query because the
selection is based on certain criteria.) Anyway, cboEquip's droplist
displays the equipment description in column (0) & a unique equipment ID
number in column (1). The bound column is 1, which I believe equates to
column (0), and the droplist is sorted assending on the equipment ID.
Here's the problem. There is more than one piece of equipment of the same
description on the list. If I select a piece that is not the highest of its
kind on the list, the description displayed in cboEquip is correct but the
data I get from the following code reflects the ID of the piece of equipment
listed highest on the list.
Me.txtEquipID = Me.cboEquip.Column(1)
How can I get the equipment ID for the piece I selected?
couple fields from an equipment table. (I use the query because the
selection is based on certain criteria.) Anyway, cboEquip's droplist
displays the equipment description in column (0) & a unique equipment ID
number in column (1). The bound column is 1, which I believe equates to
column (0), and the droplist is sorted assending on the equipment ID.
Here's the problem. There is more than one piece of equipment of the same
description on the list. If I select a piece that is not the highest of its
kind on the list, the description displayed in cboEquip is correct but the
data I get from the following code reflects the ID of the piece of equipment
listed highest on the list.
Me.txtEquipID = Me.cboEquip.Column(1)
How can I get the equipment ID for the piece I selected?