Results 1 to 4 of 4
  1. #1
    katejohnson is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    3

    Creating Graphs in Reports

    Warning: First time post and self-taught Access user.



    I have come to a point where I am looking to create a few simple graphs to insert into a report and I can not seem to figure out what I'm doing wrong.

    The process I've been using is:
    Blank Report>Design View> Add chart control>Choose Query for data pull>Add 2 fields (ex. Week Ending and Sales)>pick line chart

    ...and then non of the choices for the Y axis match up to the range that I am looking for.

    My data is arranged by Week Ending and I am looking to make 4 different point charts to show:
    Sales/Week
    Orders/Week
    Conversion Rate/Week
    Total Affiliates and Active Affiliates/Week

    I want the range of weeks to be grouped by month and to span the last year.

    Help!

    Thanks!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Any chance you could upload a sample copy of your database? Just make a copy of yours, take out any private info, put in some junk data that will show what you're after then compact/repair, zip the file and upload it to the site. Without seeing the query running your graph it'll be hard for me to help.

  3. #3
    katejohnson is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    3

    Database is attached

    Quote Originally Posted by rpeare View Post
    Any chance you could upload a sample copy of your database? Just make a copy of yours, take out any private info, put in some junk data that will show what you're after then compact/repair, zip the file and upload it to the site. Without seeing the query running your graph it'll be hard for me to help.
    I attached the database, hopefully this helps.

    This database is the same for the other question on this board, as well, regarding month over month calculations from a [week ending] field.
    Attached Files Attached Files

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    So the query SAMPLE QUERY 1 is just reporting on the table you have in there I'm assuming you've run an aggregate query, and just cut and paste that into your database for the sake of example.

    I see what your problem is, you're trying to look at the PREVIEW before you finish the product, what I would suggest instead is this:

    Create a graph, include the WEEK ENDING and TOTAL $ SALES fields (by the way, you shouldn't ever use special characters in ANY of your object names in ms access, it can really screw things up with your coding)

    Just accept whatever it tells you, select your line graph then accept everything and let it create it.

    The graph wizard is a joke so when it's done creating go to the ROW SOURCE property of the graph and look at the query it built, it's trying to make a crosstab which you don't want so put in this code:

    Code:
    SELECT [Sample Query 1].[Week Ending], Sum([Sample Query 1].[Total $ Sales]) AS [Net Sales] FROM [Sample Query 1] GROUP BY [Sample Query 1].[Week Ending] HAVING ((([Sample Query 1].[Week Ending]) Between [Enter Start Date] And [Enter End Date]));
    Then you should have a line graph of total sales by week ending.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-12-2012, 05:16 PM
  2. Creating reports
    By d_evo in forum Reports
    Replies: 1
    Last Post: 02-29-2012, 02:31 PM
  3. Creating single lined lists from reports
    By trikosuave in forum Reports
    Replies: 4
    Last Post: 02-14-2011, 08:10 PM
  4. Replies: 0
    Last Post: 10-19-2009, 11:11 AM
  5. Creating multiple reports from one Query
    By Mike Cooper in forum Reports
    Replies: 5
    Last Post: 04-24-2006, 05:00 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