Page 1 of 4 1234 LastLast
Results 1 to 15 of 53
  1. #1
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66

    How To Include Multiple Queries Into One Report

    Click image for larger version. 
<br /><script async src=
    Name: Ca57858pture.jpg  Views: 26  Size: 224.0 KB  ID: 29560" class="thumbnail" style="float:CONFIG" />


    See the TRANSTYPE (Transaction type) field? If I do Criteria: "L" or "P" or "X" for TRANSTYPE it outputs redundancies. And see on the bottom left it says 150 records? That's around how many project numbers we actually have.

    If I limit a TRANSTYPE criteria to lets say "L", I get the correct information but I can't see the project records from the "P" or "X" TRANSTYPES, there's only 30 records showing up out of 150.







    So what I did was I created 3 separate queries with the same information for all the other fields with each TRANSTYPE criteria, I'm trying to make this into a report that populates all of our project NUMBERS but shows "L" as well so we can keep track of Labor.

    Click image for larger version. 

Name:	Captu345235235re.jpg 
Views:	26 
Size:	208.3 KB 
ID:	29561Click image for larger version. 

Name:	Capt341234134ure.jpg 
Views:	26 
Size:	227.6 KB 
ID:	29558Click image for larger version. 

Name:	Captur3412341234e.jpg 
Views:	26 
Size:	223.7 KB 
ID:	29557
    Attached Thumbnails Attached Thumbnails Capt314134ure.jpg  

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Why can't you use the 1st query and just sort and group on TRANSTYPE? Sorting and grouping is a function of the report and not the query.

  3. #3
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    How do you sort by Transtype in a Report?


    Click image for larger version. 

Name:	Captur968896e.jpg 
Views:	24 
Size:	140.3 KB 
ID:	29563

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe this will help at ~1:15
    https://www.youtube.com/watch?v=3301mfErbIc

  5. #5
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    Well this Query is still giving redundancies

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So you got the sorting and grouping to work right? I don't remember you mentioning redundancies before. That can easily be caused by a Join.

  7. #7
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    Theres supposed to be 82 projects, Non-redundant.

    Shown hereClick image for larger version. 

Name:	Capture254253.PNG 
Views:	23 
Size:	26.4 KB 
ID:	29564

  8. #8
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    Refering to the first image in post 1

  9. #9
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    It shows 150 but its redundant

    It's supposed to be 82, non-redundant

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Based on your 1st post pictures:

    TRANSTYPE "X" = 52
    TRANSTYPE "P" = 68
    TRANSTYPE "L" = 30

    That totals 150 so I'm a bit confused here.

  11. #11
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    We want to be able to see every single one of the projects that has a status of a-h (82)

    But whats happening is that it's only pulling those with a QTY entered into them. It's excluding the ones without a QTY

  12. #12
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Don't understand the problem. First query shows all records with transtype = L, P, or X. That's exactly what your criteria specifies. What do you mean by redundancies?

  13. #13
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Well, gee. First you say too many records, then not enough, excluding QTY. Then you bring up STATUS, which wasn't mentioned earlier either.
    Maybe you need to start over, explaining WHAT you want the query to display, and what fields you have in the query.

  14. #14
    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
    Another thing you should be aware of is

    Reports have their own Sorting and Grouping features. These may/could overwrite your query options.

    As davegri has suggested, it might be time to clearly describe what you are trying to do in plain English. You aren't the first person to jump into Access trying to get Access to produce the report you need. But Access won't do anything you didn't tell it, so you need to describe the what before you jump to how it could be done.

  15. #15
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    @Orange: AFAIK the Report Grouping and Sorting *always* override those parameters in the query. Just my $0.02

Page 1 of 4 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. generating a report from multiple queries
    By DianneBeck in forum Reports
    Replies: 3
    Last Post: 05-31-2015, 08:53 AM
  2. Multiple Queries into one report.
    By Ray67 in forum Reports
    Replies: 3
    Last Post: 04-24-2012, 11:22 AM
  3. Use 1 report for multiple queries?
    By Rosier75 in forum Reports
    Replies: 4
    Last Post: 10-22-2011, 07:57 AM
  4. Replies: 10
    Last Post: 12-11-2010, 11:01 PM
  5. Replies: 1
    Last Post: 06-29-2010, 03:40 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