Results 1 to 6 of 6
  1. #1
    RobJD is offline Novice
    Windows 11 Office 365
    Join Date
    Feb 2024
    Posts
    2

    Combo box display problem

    I'm using a combo box so users can select/change the parent entity of child record. The row source is a query and the bound column is the unique record ID for the parent entity. In addition to the entity name, I'm displaying some additional columns in the combo box so users can distinguish between similarly named entities. When the form loads the combo box only displays the first column which is a sequence number from the underlying table and something users are familiar with. When I open the drop down, I see the additional columns but they do not display when the drop down is 'closed.' Is there a way I can display all of the columns when the form loads and the drop down is closed? Thx.

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Rob
    It would be easier if you upload your database so we can see the problem.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    By default a combo will only display the first visible column that is selected.

    There are a variety of ways around this - you can concatenate the various columns into a string and simply display that as the combo's main column.
    Alternatively you could display the other columns on the form if there is room.
    A third option is to have a text box overlaid on the combo that displays the data you want. You leave the combo box as is and just hide all of it with the text box except the actual drop down arrow.
    When it's clicked it will display exactly as it does now.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    RobJD is offline Novice
    Windows 11 Office 365
    Join Date
    Feb 2024
    Posts
    2
    Thanks Minty. This was very helpful; made me think of another solution. I just changed the order of the columns in the underlying query so the entity name is first. Now the entity name displays when the form loads. Thx.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    I always use autonumbers. So my first column is that, second is the description. First column width is set to 0, so that is hidden.
    First column is the bound column.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    I just changed the order of the columns
    If the combo is bound, make sure you set the bound column property to the correct column.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Right Click Menu Display Problem
    By Dave47 in forum Access
    Replies: 1
    Last Post: 11-28-2019, 01:41 PM
  2. Replies: 5
    Last Post: 05-31-2017, 08:58 AM
  3. Replies: 2
    Last Post: 06-24-2015, 02:38 PM
  4. Display problem after installing SP3
    By Itsmeagain in forum Forms
    Replies: 3
    Last Post: 06-30-2010, 12:31 PM
  5. Problem with form display
    By ds_8805 in forum Forms
    Replies: 6
    Last Post: 03-24-2010, 06:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums