Results 1 to 4 of 4
  1. #1
    nebuk89 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    2

    Creating a report

    Hi Guys
    I dont know if I am doing something wrong or if my copy of access is restriced.
    I want to create a report from 3 queries, each of these gets data from a table
    1. current month
    2. last month
    3. next month



    I want to display these in 1 report but when I try and add them all to the report access has a fit. Should I be getting all the data from one query? Or am I doing something else wrong
    Any help appreciated
    Many thanks
    Ben

  2. #2
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    A report can only be based on 1 record source (i.e. 1 table or 1 query). You either have to combine the 3 queries into 1, or use a main report with an appropriate number of subreports. Why not have 1 query that brings in all three months worth of data and then set up a group using the month() function?

  3. #3
    nebuk89 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    2
    Well thats saved me a load of time in report creator at least!!! :P
    If I set out below the layout I am after it would be great if you could share your thoughts on it
    I have a data set which my current query gets data which matches current month, groups it by user totalling the number of X,Y,Z next to their name
    What I am after is

    Last Month
    X Y Z
    User 1 2 3
    UserB 2 1 3

    This Month
    X Y Z
    User 3 2 1
    UserB 1 2 2

    If you get the idea, just to clarify the numbers next to the users are total values for X, Y or Z found
    Many thanks for all your help
    Ben

  4. #4
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Can you provide the SQL text of the query, so we can see what you currently have?

    You may be able to use the same query to bring in all data and let the report handle the grouping by both month and then user. I assume that you are using a parameter query currently.

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

Similar Threads

  1. Creating a report with calculations
    By Normantom in forum Queries
    Replies: 1
    Last Post: 05-07-2010, 06:29 AM
  2. Help with creating a Report..
    By TylerZ07 in forum Reports
    Replies: 2
    Last Post: 12-11-2009, 07:51 AM
  3. Problem Creating Report
    By Access_CFO in forum Reports
    Replies: 3
    Last Post: 04-01-2009, 01:08 PM
  4. creating a report in this manner
    By jiwatramani in forum Reports
    Replies: 1
    Last Post: 11-07-2008, 11:39 PM
  5. How about creating a drop down menu in a report?
    By beastmaster in forum Access
    Replies: 2
    Last Post: 12-29-2005, 01:01 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