J
JohnM77 via AccessMonster.com
I have a combobox that has two columns: UserID and Name. The following are
pertinent properties:
Row Source/Type = Table/Query
Column Count = 2
Column Widths = 0"; 3"
Bound Column = 2
Limit To List = No
I wish to programmatically select an item from the combobox based on UserID
(numeric). However, because column 2 (Name) is the bound column (required in
order to set Limit to List = No, which is necessary), I can't use Combobox.
Value = UserID, because the UserID column is not bound. Since the Column
property is read-only, I can't set it using Combobox.Column(0) = UserID.
Are there any options aside from querying for the Name corresponding to the
UserID and setting Combobox.Value = Name?
Thanks!
-John
pertinent properties:
Row Source/Type = Table/Query
Column Count = 2
Column Widths = 0"; 3"
Bound Column = 2
Limit To List = No
I wish to programmatically select an item from the combobox based on UserID
(numeric). However, because column 2 (Name) is the bound column (required in
order to set Limit to List = No, which is necessary), I can't use Combobox.
Value = UserID, because the UserID column is not bound. Since the Column
property is read-only, I can't set it using Combobox.Column(0) = UserID.
Are there any options aside from querying for the Name corresponding to the
UserID and setting Combobox.Value = Name?
Thanks!
-John