W
Wren
On my form there are 2 listboxes, the second one's Row
Source is dependent on the selection made in the first one.
The second is a multi-select listbox and I'd like to
populate 5 text fields based on the users listbox
selections.
Users may only select 2 items, populate textboxes, then go
back to the first listbox and choose another category,
then choose other results from the 2nd listbox to add to
the text boxes.
This was working nicely before I enabled multiselect on
the 2nd listbox. Then the textboxes would all populate
with the last listbox item selected.
I'm using a For / Next loop to go through the
ItemsSelected. Once the user is done populating the text
boxes from the Listbox items, those 5 textbox values will
be used at a later point for insertion into a table.
How would you suggest testing to see if the textbox is
already populated with another piece of data (so it needs
to be null or = ""), AND also make sure that the same
Listbox.Column value wasn't already used in another of the
5 textboxes?
Or any other suggestion on a different approach to achieve
the same results?
Source is dependent on the selection made in the first one.
The second is a multi-select listbox and I'd like to
populate 5 text fields based on the users listbox
selections.
Users may only select 2 items, populate textboxes, then go
back to the first listbox and choose another category,
then choose other results from the 2nd listbox to add to
the text boxes.
This was working nicely before I enabled multiselect on
the 2nd listbox. Then the textboxes would all populate
with the last listbox item selected.
I'm using a For / Next loop to go through the
ItemsSelected. Once the user is done populating the text
boxes from the Listbox items, those 5 textbox values will
be used at a later point for insertion into a table.
How would you suggest testing to see if the textbox is
already populated with another piece of data (so it needs
to be null or = ""), AND also make sure that the same
Listbox.Column value wasn't already used in another of the
5 textboxes?
Or any other suggestion on a different approach to achieve
the same results?