Hi,
I have a listbox (LST1) and after clicking on a button a sub will run, checking if a listbox item is selected.
for i=0 to me.lst1.listcount -1 do
if me.lst1.selected(i)=true then
...
' maybe some data will be changed
me.lst1.requery
...
end if
next i
Under certain circumstances some data will be changed during the loop, so that the litboxsource needs a requery.
After the requery all selected items are no longer selected. But I want all Items that had been selected to be selected still after the requery. Is there an easy way to manage it?
Thank you
I have a listbox (LST1) and after clicking on a button a sub will run, checking if a listbox item is selected.
for i=0 to me.lst1.listcount -1 do
if me.lst1.selected(i)=true then
...
' maybe some data will be changed
me.lst1.requery
...
end if
next i
Under certain circumstances some data will be changed during the loop, so that the litboxsource needs a requery.
After the requery all selected items are no longer selected. But I want all Items that had been selected to be selected still after the requery. Is there an easy way to manage it?
Thank you