Set focus to an item in multi-select listbox

Bello

Registered User.
Local time
Today, 12:31
Joined
Jun 19, 2003
Messages
21
Hi! Thank you for reading my question.

The situation is:

I got two multi-select listboxes, one or more items can be moved between them by either pressing a command button or double-click on the item.

Now the problem is whenever I move an item from list1 to list2, the 'focus' always go back to the first item in list1. I want the focus to be placed on the next item following the item being moved. For example, if I move item 99th the focus should be placed on the 100th, so that I can move more items around that number, rather than dragging the scrollbar to the 100th again from the top...

Any advises would be greatly appreciated!
 
Tim,

Thanks for your reply. But I afraid what you suggested is only works for single-select listbox as the 'selected' property doesn't move the focus for a multi-select listbox...
 
>
the 'selected' property doesn't move the focus for a multi-select listbox
<

I'm using Access 97. I find that the Selected property does move the focus for a multi-select listbox.
 
EMP,

I'm using Access 2002. However, I just figured it out that the 'listindex' property did the job!
 

Users who are viewing this thread

Back
Top Bottom