Listbox Default Record

C

Craig

I think I figured out the issue from my previous posting.
I have the Multi-select turned on in the second listbox
and for some reason you can't set a default record in a
listbox when that is the case.

Or can you? Is it possible to have a user open a form and
the listbox on the form to default (highlight) to the
first record, when the listbox is set to 'Multi-select'?

Thx again for any help.

C
 
D

Dirk Goldgar

Craig said:
I think I figured out the issue from my previous posting.
I have the Multi-select turned on in the second listbox
and for some reason you can't set a default record in a
listbox when that is the case.

Or can you? Is it possible to have a user open a form and
the listbox on the form to default (highlight) to the
first record, when the listbox is set to 'Multi-select'?

A multiselect list box doesn't have a Value property. You can still
select the first item in the list box, using this code:

Me!Listbox2Name.Selected(0) = True
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top