Results 1 to 2 of 2
  1. #1
    whisp0214 is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    May 2017
    Posts
    30

    How to return a value based on multiple fields and tables

    I am new to Access, so I am sure there is an easy solution I can't find. Here is my issue.

    The two tables I am working with are tblPurchaseOrders and tblCommissionRates. tblPurchaseOrders contains all PO's for our company along with Vendor ID and Retailer ID for every PO listed.

    We handle many Vendors and Retailers and there is a lot of crossover. I.E. Vendor A does business with Retailer A,B,C and so on. Each retailer/vendor combination has their own unique commission rate which is stored in tblCommissionRates.(all possible combinations are in this table)



    What I am trying to do is create a query that will pull the commission rate from tblCommissionRates based on the Vendor ID and Retailer ID combination on tblPurchaseOrders. If I need to be more detailed, please let me know.

    Thanks in advance.

    Jack

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    what you have described sound a bit simplistic, but if it is a complete description then both your tblPurchaseOrders and tblCommissionRates will have a VendorID field and RetailerID field so just join the two tables on both equivalent fields

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

Similar Threads

  1. Replies: 3
    Last Post: 02-20-2017, 08:27 AM
  2. Replies: 3
    Last Post: 07-26-2016, 02:12 PM
  3. Replies: 5
    Last Post: 02-13-2016, 10:12 AM
  4. Return multiple results based on a field
    By johnnythered in forum Access
    Replies: 1
    Last Post: 08-27-2015, 10:35 AM
  5. Replies: 5
    Last Post: 11-03-2014, 03:06 PM

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