Results 1 to 2 of 2
  1. #1
    JimFlood7898 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2020
    Posts
    13

    Angry Add "ALL" to Combo Box

    Been trying to add "ALL" to a combo box that opens a report from query.

    Just can get it to work, been trying several links that I found on line.
    This is my combo Row Source: SELECT [qry_TransByContractor].[Project_ID], [qry_TransByContractor].[CoAbbr] FROM [qry_TransByContractor] ORDER BY [CoAbbr];

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Use a UNION query. However, will need VBA code to deal with the "ALL" option. Review http://allenbrowne.com/ser-62.html

    SELECT [qry_TransByContractor].[Project_ID], [qry_TransByContractor].[CoAbbr] FROM [qry_TransByContractor] ORDER BY [CoAbbr]
    UNION SELECT 0; "_ALL" FROM qry_TransByContractor;
    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.

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

Similar Threads

  1. Simple table relationships ("faces" to "spaces" to "chairs")
    By skydivetom in forum Database Design
    Replies: 36
    Last Post: 07-20-2019, 01:49 PM
  2. Replies: 4
    Last Post: 04-12-2019, 09:47 AM
  3. Replies: 12
    Last Post: 10-01-2018, 02:40 PM
  4. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  5. Replies: 1
    Last Post: 09-03-2014, 03:27 AM

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