Results 1 to 3 of 3
  1. #1
    vector39 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2017
    Posts
    76

    How to display certain listbox columns on form

    Hi everyone



    I have a query pulling info from 2 tables and a list box on a form with the record source set to that query. There's a total of 13 column fields but I just need 5 of them to display in the list box. In addition to this, I'm trying to set the remaining hidden columns to be bound to text boxes on the form. Essentially the user will see the info in the 5 listbox columns but additional information will can be seen in these textboxes. I changed the query to not show the other columns by unchecking "Show" and also I changed the column widths property from 1;1;1;1;1;1;...etc to 2;2;2;2;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0; etc. Five text boxes are set to the each column in the listbox (e.g. '=[Results].Column(n)') but I don't know how to set the other text boxes' control source to be set to the remaining hidden columns. If anyone can provide some feedback to this, that would be much appreciated. Thank you.

    - Rookie Programmer



  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,915
    Why set the query to not show fields? If fields are set to not show and there is no filter or sort criteria associated with them, the fields will not stay in the query and are therefore not in the listbox RowSource. Leave the Show box checked and manage display with listbox properties.

    Set textboxes to display hidden columns the same way as visible columns.
    Last edited by June7; 05-25-2017 at 03:12 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    vector39 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2017
    Posts
    76
    Thank you

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

Similar Threads

  1. Replies: 3
    Last Post: 10-28-2015, 12:38 PM
  2. Replies: 8
    Last Post: 11-11-2013, 08:39 PM
  3. Replies: 14
    Last Post: 12-26-2011, 07:32 PM
  4. Replies: 2
    Last Post: 08-12-2011, 01:01 PM
  5. Replies: 3
    Last Post: 02-01-2011, 09:47 AM

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