On 17 Dec 2005 14:25:54 -0800, "ken" <ge****@gmail.com> wrote:
Hi,
Say I have a list box. I also created a control on a form bound to that
list box. When I click different rows in the listbox the control
changes the ID of the row depending on what I click.
One thing I'm doing is setting the .selected(i) property of the list
box to true. On the screen I see that a different row gets hillighted,
but the bound control on the form is showing the wrong value?
So changing what is selected with code did not turn out to be the same
as cliking on the list box? Does this make any sense?
Lyle is being particularly kind.
But, translating with a crystal ball, I guess that you have a bound
multi-select listbox. The list box can have multiple items selected.
The field that the listbox is bound to can only store one result.
Hence, a bound multi-select listbox is destined for confusion.
I'm not even sure why Access allows multi-select list boxes to be
bound. Endless confusion results.
You will need to walk the items of the listbox to determine whether
each is selected and then use the results accordingly, probably by
storing the value of each selected item somehow.
But I am just guessing.
mike