- Local time
- Today, 17:13
- Joined
- Sep 12, 2006
- Messages
- 16,051
I have a list box on an unbound main form, which contains a rowsource consisting of files in a certain folder. The listbox is unbound
when I change an item in a subform, the listbox should update to show different items from the same folder.
Now it is updating correctly, so the rowsource appears to be correct, , but then the listbox behaves strangely - with the first item being sort of permanently selected - or at any rate - strange selection behaviour
Anyone seen this sort of behaviour?
-----
out of interest, changed it to a combo box and it works correctly. so there must be some difference between the two?
----
After investigation, it might be this
http://stackoverflow.com/questions/3843784/listbox-is-selecting-many-items-even-in-selectionmode-single
the appearance is similar to what is described in the thread.
although I have played with the strings to get them shorter without getting it work correctly. very strange
----
further
if I run the code to update the listbox from the subform, either directly, or by running as sub IN the main form, it produces this strange behaviour. If I run exactly the same code directly IN the main form, it seems to work properly.
when I change an item in a subform, the listbox should update to show different items from the same folder.
Now it is updating correctly, so the rowsource appears to be correct, , but then the listbox behaves strangely - with the first item being sort of permanently selected - or at any rate - strange selection behaviour
Anyone seen this sort of behaviour?
-----
out of interest, changed it to a combo box and it works correctly. so there must be some difference between the two?
----
After investigation, it might be this
http://stackoverflow.com/questions/3843784/listbox-is-selecting-many-items-even-in-selectionmode-single
the appearance is similar to what is described in the thread.
although I have played with the strings to get them shorter without getting it work correctly. very strange
----
further
if I run the code to update the listbox from the subform, either directly, or by running as sub IN the main form, it produces this strange behaviour. If I run exactly the same code directly IN the main form, it seems to work properly.
Last edited: