Results 1 to 2 of 2
  1. #1
    Zetheroth is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Jun 2022
    Posts
    31

    Question Making a report that sums specific bale types

    Hello everyone, I have come (again, second time today) to ask for the help of those more skilled than me. I intent to create a report based off the attached database, and int the report I need to be able to sum data from multiple queries. I need to sum the total amount of hay purchased for each bale type combination, and I need to sum the total bales picked up for each combination, but only display the ones relevant to the chosen buyer (see report maker on main menu). I also need it to subtract the bales picked up from the ones purchased, to show what inventory we still owe them. Lastly, I need to put the total still owed from the sales report onto the report, and take it off the sales report.



    I look forward to you mad lads helping with my problem as I have no idea where to begine.Sales Examples .9.zip

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    make a UNION query that collects from all different queries:
    qnUnion:
    select * from qsQry1
    union
    select * from qsQry2
    union
    select * from qsQry3


    then make the final query to sum your fields from qnUnion

    NOTE: all queries in union must have the exact same fields in same order.

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

Similar Threads

  1. Replies: 15
    Last Post: 04-08-2022, 04:32 PM
  2. Replies: 3
    Last Post: 06-08-2018, 08:39 AM
  3. Replies: 9
    Last Post: 09-29-2016, 06:47 AM
  4. Replies: 0
    Last Post: 01-19-2012, 11:36 PM
  5. making specific fields non-editable
    By narayanis in forum Forms
    Replies: 3
    Last Post: 08-06-2008, 12:22 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