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

    How would I do a union query between Query 1 and Query 2 and put that into one report?
    Attached Thumbnails Attached Thumbnails Cap245254ture.PNG  

  2. #47
    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

  3. #48
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    For some reason it says that the columns have to be the same amount or something in order for the UNION ALL statement to work (smh). These are no where close to being the same column amounts.




    Im trying to get all the projects with a status of a-h to show up in a report

    Click image for larger version. 

Name:	Cap345345ture.PNG 
Views:	6 
Size:	38.5 KB 
ID:	29646


    Click image for larger version. 

Name:	Captur536546e.PNG 
Views:	6 
Size:	18.1 KB 
ID:	29647

    and in that same report, I need to be able to see the projects that has a transtype L


    These are two separate queries

  4. #49
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    104 records from Query 1 + 32 records from Query 2 so in that report there should be 136 records (32 of them being L)

  5. #50
    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
    As the link I posted stated, the two queries must have identical fields.

  6. #51
    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,725
    You want UNION not UNION ALL which includes duplicates/replicates (unless you want the duplicates)

  7. #52
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    How would I subtract a report column against a sub-report column?

  8. #53
    newuserthatneedsassistanc is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2017
    Posts
    66
    How come when I write this equation it outputs redundancy?

    All I'm trying to do is to figure out the difference between the two columns.
    If I delete the expression there is no redundancy

    Click image for larger version. 

Name:	Captu2354235415215re.PNG 
Views:	3 
Size:	23.2 KB 
ID:	29672Click image for larger version. 

Name:	Capture2542345.PNG 
Views:	3 
Size:	52.3 KB 
ID:	29673

Page 4 of 4 FirstFirst 1234
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