Results 1 to 5 of 5
  1. #1
    steffwood is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2015
    Posts
    5

    Access 2013 Multiple Queries need to summarize

    Hello,



    I think you will recommend a UNION query on this, but let me give it a shot. Is there an easier way? What's the best way.

    I have a main extract file, that is linked, so it will refresh with new data on a daily basis. I am creating a daily report.
    I have three queries, File Complete, Files Received, PROD Files Received.
    Fields are Customer, Task, Task Completed Date.

    I want to summarize in a report in this output and have it pull X (count of tasks for each day)

    Mon Tue Wed Thur Fri
    Files Received X X X X X
    Files Completed X X X X X
    PROD Files Received X X X X X

    What do you think? Do I still use a SQL Union statement? I want a nice summarized report and I've already put a condition in the queries that will pull tasks completed for the current week.
    Eg: DatePart("ww", [End Date]) = DatePart("ww", Date()) and Year( [End Date]) = Year(Date())

    Thanks for the help.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Do all 3 queries draw from the same data source - main extract? If so, why do you have 3 queries?
    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.

  3. #3
    steffwood is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2015
    Posts
    5
    they all do come from the same extract. I have specific conditions for each, tried creating a one main crosstab query but it would give me an error stating too many crosstab column headers.
    So I just made a separate query for each category, files received, completed and PROF files received.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    By 'specific conditions' you mean filter criteria?

    These are CROSSTAB queries?

    Building stable report based on CROSSTAB is not simple because of dynamic nature of field headers.

    Might find this of interest http://allenbrowne.com/ser-67.html
    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.

  5. #5
    steffwood is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2015
    Posts
    5
    Thank you for the information.
    I've managed to create a crosstab report and insert subreports within the main report.

    :-) Looking great!

    Now if I can only figure out how to export the main report with all subreports I would be happy!

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

Similar Threads

  1. Replies: 5
    Last Post: 12-17-2013, 11:37 AM
  2. Replies: 5
    Last Post: 10-25-2013, 08:49 AM
  3. Replies: 1
    Last Post: 08-26-2013, 05:08 PM
  4. Queries - Help MS ACCESS 2013
    By joemills62 in forum Queries
    Replies: 1
    Last Post: 08-23-2013, 09:41 AM
  5. Update query to summarize multiple values
    By ser01 in forum Queries
    Replies: 3
    Last Post: 05-15-2010, 09:38 AM

Tags for this Thread

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