Results 1 to 5 of 5
  1. #1
    rcoreejes is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Posts
    6

    Charts from queries

    Hi, I don't seem to get it right to use a chart in my reports from a query.
    See attached database. I want to create a chart in the report to give visual feedback to the user.
    Could somebody help me with this and give me a step-by-step explanation how to do this?
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    You mean a graph? What data do you want to plot? What do you want it to look like - pie, bar, line?

    If you want to show all parties on the report even if there were no votes, need to change the join type of the query from INNER to LEFT:

    SELECT DISTINCTROW Candidates.CandidatesPartyName, Sum(Votes.VotesValue) AS [Sum Of VotesValue]
    FROM Candidates LEFT JOIN Votes ON Candidates.[CandidatesNumber] = Votes.[VotesPartyName]
    GROUP BY Candidates.CandidatesPartyName
    ORDER BY Sum(Votes.VotesValue) DESC;

    Suggest the candidate name and vote sum both go in the group header.
    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
    rcoreejes is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Posts
    6
    Yes, a bar-graph.
    I want to create the graph in access's report, just like you do in excel.
    Attached is the result I want, like in excel, but don't know how to do it in access.
    Attached Thumbnails Attached Thumbnails Chart.jpg  

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Try:

    1. create a bar graph in the report header, doesn't matter how you set it up with the wizard, just get the graph object on the report

    2. change the graph RowSource to:
    SELECT [CandidatesPartyName], [Sum Of VotesValue] FROM [Candidates_Query];

    3. open in layout view and save the report

    4. return to design view and set graph properties as desired

    With the previously suggested changes, all of the candidates will show on graph.
    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.

  5. #5
    rcoreejes is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Posts
    6

    Wink

    Thanks a lot. It's working perfectly

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

Similar Threads

  1. Charts :( |*!%#!
    By libraccess in forum Reports
    Replies: 2
    Last Post: 05-08-2012, 12:55 AM
  2. Pareto Charts
    By arthura in forum Access
    Replies: 1
    Last Post: 08-11-2011, 08:33 AM
  3. Multiple Charts Instead of One
    By Mike Borozdin in forum Reports
    Replies: 0
    Last Post: 02-28-2009, 07:15 AM
  4. Charts in Reports
    By arthura in forum Reports
    Replies: 0
    Last Post: 01-09-2009, 07:16 AM
  5. Pivot Charts
    By Ruby in forum Access
    Replies: 0
    Last Post: 11-16-2007, 05:56 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