I have read a few threads on how to clear the selected line from a list box, however non of the work.
What I would like to do is if an item is selected and then I add a new item to the listbox, I either want the selection highlight to be cleared or move to the top row. The problem is after I save the new data, the list box requeries and then the form refreshes, then what happens is I go back to the same row being selected as it was before. I try have tried
me.list0.selected(varitem)=false
this will clear the selectio, but then when it refreshes it goes back to the previous selection.
Me.list0.rowsource=me.list0.rowsource did absolutely nothing.
Any help would be appreciated.
Thanks.
What I would like to do is if an item is selected and then I add a new item to the listbox, I either want the selection highlight to be cleared or move to the top row. The problem is after I save the new data, the list box requeries and then the form refreshes, then what happens is I go back to the same row being selected as it was before. I try have tried
me.list0.selected(varitem)=false
this will clear the selectio, but then when it refreshes it goes back to the previous selection.
Me.list0.rowsource=me.list0.rowsource did absolutely nothing.
Any help would be appreciated.
Thanks.