List Boxes

S

Steve

Does anyone know how to make a list box expand to fit the criteria? I am
selecting a variable first, and depending on what is selected depends on
whether 1 item or 100 items will display in the list box??
 
D

Duane Hookom

I assume you want the height of the list box control to grow to display all
items in the list box. If so, I think you can use the ListCount like:

Me.List0.Height = Me.List0.ListCount * 215
 
S

Steve

I will try this....THANKS

Duane Hookom said:
I assume you want the height of the list box control to grow to display all
items in the list box. If so, I think you can use the ListCount like:

Me.List0.Height = Me.List0.ListCount * 215
 

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