Data display on a form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sesling
    New Member
    • Nov 2006
    • 84

    #1

    Data display on a form

    I created a form that has a list box. When a item from the list box is selected I use that data to update the values in another list box. I am using the after_update to pass the row source to the second list box. Here is my issue,
    the data that appears in the second list box is longer than I can display on the screen. Is there a way to get the data in the second list box to wrap? I could get all the data on the screen if I could wrap the text.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Not that I know of, you could have that longer data appear in a large textbox next to the listbox though.

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #3
      Originally posted by sesling
      I created a form that has a list box. When a item from the list box is selected I use that data to update the values in another list box. I am using the after_update to pass the row source to the second list box. Here is my issue,
      the data that appears in the second list box is longer than I can display on the screen. Is there a way to get the data in the second list box to wrap? I could get all the data on the screen if I could wrap the text.
      If you set the Row Source Type = Value List, and use the following code to fill the List box Me![lstTest].RowSource = "Philadelph ia is the city" & vbCrLf & " of brotherly love.", Philadelphia is the city will display in the List Box but if you reference it in code Philadelphia is the city of brotherly love will display on 2 lines. Hope this helps.

      Comment

      • sesling
        New Member
        • Nov 2006
        • 84

        #4
        Originally posted by ADezii
        If you set the Row Source Type = Value List, and use the following code to fill the List box Me![lstTest].RowSource = "Philadelph ia is the city" & vbCrLf & " of brotherly love.", Philadelphia is the city will display in the List Box but if you reference it in code Philadelphia is the city of brotherly love will display on 2 lines. Hope this helps.
        I was able to use the vbCrLf with my text and it wraps just fine. Thx for your help

        Comment

        Working...