Results 1 to 3 of 3
  1. #1
    FL_Boy is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    6

    Grouped Report with Charts

    I've got a table with three Columns
    dDate, Sales, Region
    1/1/11, 50, 1
    2/1/11, 40, 1
    3/1/11, 35, 1
    1/1/11, 55, 2


    2/1/11, 45, 2
    3/1/11, 30, 2
    1/1/11, 20, 3
    2/1/11, 25, 3
    3/1/11, 30, 3

    I can generate a grouped report based on Region in tabular format by dragging the [Region] into the header portion of the report. I'd like to do the same with a chart. When I insert a chart into the report it uses all the data and doesn't filter it by [region]. In the detail portion of the chart, I've tried to programmatically set the rowsource of the chart using the "on format" event, but got an error.
    What should I be looking at to do this?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Put Region in a group header, not report header. Put chart in the Group header. Chart RowSource: SELECT Format([dDate],"MMM 'YY"), Sales FROM [Table1] WHERE Region=tbxRegion;

    Do you need to limit the records to a specific year? Will need more WHERE criteria in the chart's RowSource.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    FL_Boy is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    6
    thanks--I though I was doing what you had suggested, but trying it one more time did the trick! It looks great.
    Folks are pretty amazed to learn that access can do charts.

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

Similar Threads

  1. Access Report deletes grouped data.
    By matt123 in forum Database Design
    Replies: 5
    Last Post: 07-07-2011, 09:19 AM
  2. Multiple linked charts in a report
    By gonzo79 in forum Reports
    Replies: 0
    Last Post: 11-09-2010, 05:24 AM
  3. Report people grouped to years
    By gerhard_s in forum Reports
    Replies: 3
    Last Post: 10-01-2010, 07:59 AM
  4. Replies: 2
    Last Post: 08-25-2010, 01:42 PM
  5. Grouped Report Missing Data
    By travismd in forum Reports
    Replies: 1
    Last Post: 11-30-2009, 11:08 AM

Tags for this Thread

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