Results 1 to 2 of 2
  1. #1
    sixsigma125 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    1

    Combining (Joining) Two Reports Creates Multiplied Numbers


    I have two reports that I'm utilizing in access that are joined via a common key, which we'll call "Store Number".

    Both reports (brought in as linked tables) are identical, with the exception of their data columns [though named the same].

    So, for example, on each imported table, there are three columns. Store Number, Flavor, and POS. The only difference is that the first table has POS numbers from last month, and the second file has POS numbers from Last week. The goal was to make a report that shows Store Number, Flavor, and POS Last Month, POS Last Week in an excel pivot table (exported). However, whenever I link the two reports via "Store Number", POS Last Month brings back some astronomically large number, much higher than what it should be (summed, of course). What could cause this? I've copied the SQL below. Maybe a syntax issue?


    SELECT [Test File 1].[Flavor], [Test File 1].[Range 1 LM POS Sales], [Test File 2].[Range 1 LWK POS Sales]
    FROM [Test File 1] INNER JOIN [Test File 2] ON [Test File 1].[Store Number] = [Test File 2].[Store Number]
    GROUP BY [Test File 1].[Flavor], [Test File 1].[Range 1 LM POS Sales], [Test File 2].[Range 1 LWK POS Sales];

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So this is a single report, not report/subreport? Possibly instead of a single report with a query that joins data, should be report/subreport arrangement. Maybe even 2 subreports. Main report for the parent StoreNumber record. Then a subreport each for last month and last week.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Combining Reports
    By swicklund in forum Reports
    Replies: 2
    Last Post: 06-11-2013, 11:24 AM
  2. combining reports
    By TahaSarhan in forum Reports
    Replies: 9
    Last Post: 10-14-2011, 11:53 AM
  3. Query Issues: Multiplied Results
    By Sa'El in forum Access
    Replies: 1
    Last Post: 09-12-2011, 09:46 AM
  4. Joining or Combining Two tables
    By escuro19 in forum Queries
    Replies: 2
    Last Post: 02-16-2010, 03:55 PM
  5. Form that runs query and creates reports
    By Valeda in forum Forms
    Replies: 2
    Last Post: 05-04-2006, 07:01 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