Text wrap in Listbox

Application - MS Access

Control - Listbox with 2 fields ( 1st = ID, 2nd = descriptor or information of significant length )

Requirements - that the descriptor has its information display within the field width.

Questions - can this be coded in VB so that the user sees all the information.    There will alway be more than one record to be displayed in the list.

Many thanks
millikensAsked:
Who is Participating?
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Connect With a Mentor Infotrakker SoftwareCommented:
No, there is no such thing as word wrap in a Listbox. You can mimic this by using a Subform that looks like a listbox.
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
In a Access list box, text cannot wrap.

But you might want to look at this:

http://www.dbi-tech.com/ctList.asp

I bought the Component Toolbox ... the controls are awesome ... especially the TreeView ... considerable more flexibility than M$.  You can download for free and try.  Comes with Access mdb samples and A HELP file!  **Royality free distribution**!

53 some components ... big bang for the buck.

mx
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
Also ... see this:

(Free)

http://www.lebans.com/listboxenhanced.htm
0
 
jefftwilleyCommented:
Ok, I'll bite. Where else are you showing this same information to your user, AND
Do you really consider presenting your user with that much info in a control that was meant to be quick to read and quick to select, a good idea?
If it must be a listbox, then create a condensed version of the LONG description, and give your box some kind of click event to open a pop-up form with that long description in it if you must.

Otherwise, go with LSM on this one, and go with the subform.
J
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I have used this for listboxes:

SELECT Col1, Col2, IIF(Len(Col3)>25, Left(Col3, 20) & " ...", Col3) FROM SomeTable

This presents data like this:

Bob | Jim | This is a great way to ...

And then do as Jeff suggests and use a popup for more info ..
0
All Courses

From novice to tech pro — start learning today.