Results 1 to 4 of 4
  1. #1
    DianneBeck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2015
    Posts
    18

    generating a report from multiple queries

    I have developed a developed a database to keep up with appropriation amounts and expenditures. The expenditure table contains all expenditures for the entire year. I have developed queries for the appropriations, mtd expenditures and ytd expenditures. I need to develop a report that reflects the fund, program and account, appropriation amount, mtd expenditure, ytd expenditure.



    Every time I try to generate the report from all three queries I get a message that tells me that I'm trying to generate a report from tables and queries but I'm not. I'm only using queries. I need to pull totals on the fund and program levels.

    Thanks

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    [Every time I try to generate the report from all three queries]
    What does this mean? You can only have one recordsource for a form or report AFAIK. Is this a report with two sub reports, hence 3 queries? If not, think you will either need one query that uses the other 3 as data sources or one table based on those 3.

  3. #3
    DianneBeck is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2015
    Posts
    18
    How do generate a table based on the three queries?

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You put your 3 queries in the table part of the query design grid for a new query as you would for tables. Make the appropriate joins and add the fields you need to the field grid and either save your new query as a select, or if it makes more sense, as a make table. If the latter, I almost never keep a make table query once I'm happy with the design because I suspect the constant over-writing of it contributes to database bloat, but I have no proof of that. You also have to deal with the over-write prompt. So for me, the make table is changed to an append. You set the form or report record source to the new query (or table).

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

Similar Threads

  1. Replies: 15
    Last Post: 07-05-2013, 10:44 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: 7
    Last Post: 10-19-2011, 07:17 PM
  5. Replies: 1
    Last Post: 02-17-2011, 10:57 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