Results 1 to 6 of 6
  1. #1
    GarageConcepts is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    3

    Join 2 fields in combo box


    We have a Vendor table and Employee table we want to create a combo box for Payee that when dropped down show both Vendor and Employee in one list.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    A UNION query:

    SELECT Employee
    FROM EmployeeTable
    UNION ALL
    SELECT Vendor
    FROM VendorTable

    Google for the various rules and limitations.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    you could to join the 2 tables in a query. and then use that query to populate the the drop down. If you create the query first, there is a wizard to do the rest.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Do you have clear definitions for Vendor, Employee and Payee? Sufficient to distinguish each from the others in all of your business processes?
    Do you need a Payee table?

  5. #5
    GarageConcepts is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    3
    Thank you guys. The problem is solved. I just needed a Little help with the SQL on the UnionQ

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. How to join on fields containing nulls
    By Atoga in forum SQL Server
    Replies: 3
    Last Post: 11-27-2015, 08:55 AM
  2. Join fields in 2 tables and adding a criteria
    By elenaluiza in forum Access
    Replies: 2
    Last Post: 11-09-2015, 03:25 PM
  3. How to join fields?
    By offie in forum Queries
    Replies: 2
    Last Post: 06-20-2013, 03:52 PM
  4. Inner Join and multiple fields
    By mrr2 in forum Queries
    Replies: 25
    Last Post: 05-16-2012, 11:11 AM
  5. join date fields
    By rickscr in forum Database Design
    Replies: 4
    Last Post: 04-22-2011, 10:39 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