G
Guest
I have a list box with a query from a table as the rowsource. Once a record
is selected and processed, it is removed from the table and the listbox
rowsource is refreshed. I would like the cursor(selection) to be placed on
the next record. I've tried the follwoing code (among many) without any
success. Any suggestions?
i = Me.lstItems.ListIndex
code to process record and remove from table... at end
Me.lstItems.Requery
Me.lstItems.ListIndex(i).SetFocus
The listbox has focus, but the cursor move to the first record on the page.
There is no sort option in the query.
Thanks
is selected and processed, it is removed from the table and the listbox
rowsource is refreshed. I would like the cursor(selection) to be placed on
the next record. I've tried the follwoing code (among many) without any
success. Any suggestions?
i = Me.lstItems.ListIndex
code to process record and remove from table... at end
Me.lstItems.Requery
Me.lstItems.ListIndex(i).SetFocus
The listbox has focus, but the cursor move to the first record on the page.
There is no sort option in the query.
Thanks