Results 1 to 5 of 5
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    multiple results


    All; using access 2010. I have a problem with queries that joined tbls with date fields. If I have a tbl with a cust record joining to a tbl with dates it inflates my result because it originally has two records without grouping. How can I get around this?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If the Cartesian Product is unavoidable then I believe the best solution is GROUP BY.
    http://www.dba-oracle.com/t_garmany_...cross_join.htm

  3. #3
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    It sounds like you have a one-to-many (or many-to-many) relationship between tables. Addressing that really depends on what the data looks like, how the tables are joined, and what you want to return. I think we will need those details in order to give you specific direction.

  4. #4
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    I have the tblcust left joined with tbltermed and the query is grouped. I can use a max on term but have run into problems where the user doesn’t necessarily want the max or min.

  5. #5
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Please show us sample of the data in each table, and what you would like your expected outcome to look like.
    Before we can tell you "how to get there", we need to know "where we are going".

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

Similar Threads

  1. multiple results
    By ck4794 in forum Forms
    Replies: 11
    Last Post: 10-22-2013, 07:50 PM
  2. Replies: 5
    Last Post: 05-21-2013, 02:21 PM
  3. Replies: 1
    Last Post: 02-04-2012, 02:07 AM
  4. Multiple field results
    By ronchetc in forum Queries
    Replies: 1
    Last Post: 05-24-2011, 10:03 AM
  5. Iff with multiple results?
    By monkeyman in forum Queries
    Replies: 1
    Last Post: 05-19-2011, 02:27 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