How to re-set index in a list box?

X

Xfen

Hi there,

I want to re-set the index to 0 after each use of a list
box. My code is like this:

Me!List1.ListIndex = 0

I get run time error because the use of ListIndex is
incorrect.

What is the correct way?

Thanks.
 
B

Bruce M. Thompson

I want to re-set the index to 0 after each use of a list
box. My code is like this:

Me!List1.ListIndex = 0

Try:

Me.List1.Value = Me.List1.ItemData(Abs(Me.List1.ColumnHeads))
 

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