A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

List Boxes



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2008, 04:39 PM posted to microsoft.public.access.tablesdbdesign
Steve
external usenet poster
 
Posts: 2,662
Default List Boxes

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??
  #2  
Old September 15th, 2008, 07:36 PM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default List Boxes

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

--
Duane Hookom
Microsoft Access MVP


"Steve" wrote:

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??

  #3  
Old September 15th, 2008, 07:42 PM posted to microsoft.public.access.tablesdbdesign
Steve
external usenet poster
 
Posts: 2,662
Default List Boxes

I will try this....THANKS

"Duane Hookom" wrote:

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

--
Duane Hookom
Microsoft Access MVP


"Steve" wrote:

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??

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.