Results 1 to 3 of 3
  1. #1
    Hueyv is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2016
    Posts
    2

    Lookup (vlookup) field to another table's

    Sorry if this question do not belong in this thread/discussion. I have a challenge where I need to have a field lookup the record to another table's field. This involves 4 tables. The table design/scenario is this:
    Tables:
    1. Customer (Customer)
    2. Tool (Tool revision)
    3. Quote (Quotation)
    4. Sales (containing salesperson)

    Relationship:
    Customer -> one-to-many -> Tool
    Sales -> one-to-many -> Quote
    Sales _> one-to-many -> customer

    In the table/form - though a field lookup or reference:
    A salesperson enter a new quote and choose a customer. As soon as he/she chooses the customer, the 'tool' field displays (combo/list) the tool revision for that particular customer only.



    I am having difficulty when he/she choose the customer, every 'Tool' for ALL customer displays.

    How do I solve this problem?

    Much appreciated it.

    Hue

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    the combo sql for tools should be referencing the customer.
    the sql would be:

    select tool from table where [CustID] = forms!frmMyForm!cboCustomer

  3. #3
    Hueyv is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2016
    Posts
    2
    Thank you ranman256! I will give that a try and let you know.

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

Similar Threads

  1. Replies: 17
    Last Post: 05-07-2015, 11:14 AM
  2. Replies: 5
    Last Post: 01-23-2015, 03:38 PM
  3. Replies: 3
    Last Post: 05-31-2014, 11:37 AM
  4. Replies: 2
    Last Post: 10-09-2012, 03:20 PM
  5. Lookup a field from another table?
    By yeleek in forum Reports
    Replies: 6
    Last Post: 06-08-2012, 08:43 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