Results 1 to 4 of 4
  1. #1
    AMJADJ is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jul 2018
    Posts
    34

    Bring back records from two tables based on parameter

    Hi



    I have a customer sales table and a customer notes table, on which I am designing a query. I have brought the two tables in without linking them and brought in the appropriate fields. The issue I have is as this is one query, if I have one order but 3 notes, I am getting the order replicated 3 times, the difference between each record is the note itself.

    The end game is to create a report where the user types in the customer ID, it brings back sales and notes. Currently this is working off two queries, but the user has to type in the customer ID twice.

    I have created a report where the sub report is linked with the master report by customer ID, but if there is a customer with no sales but notes, it brings back blank for both main report and sub report.

    Hope this makes sense!
    Thanks In Advance.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Can you join your tables by CustomerId? Have you tried?
    Please post the sql of your query.

  3. #3
    AMJADJ is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jul 2018
    Posts
    34
    Yes, but you may have customers who we have sold to, but entered no notes and vice versa, hence why I did not join the two tables.
    Thank you for your time in replying.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

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

Similar Threads

  1. Replies: 5
    Last Post: 09-25-2018, 05:16 PM
  2. Replies: 4
    Last Post: 11-28-2017, 08:16 AM
  3. Replies: 4
    Last Post: 09-09-2015, 06:47 AM
  4. Replies: 1
    Last Post: 01-16-2015, 12:52 PM
  5. Bring back focus to a form
    By AbbHeDa in forum Programming
    Replies: 6
    Last Post: 04-28-2012, 01:50 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