Results 1 to 2 of 2
  1. #1
    Ace is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    3

    Angry I need help with a chart SQL query, only one slice is displaying

    First, please forgive if this is in the wrong thread. This is being made on a form, has to do with charts, and I think its a problem with the SQL statement... so thats where I focused

    Anyway, I run through the chart wizard to create a pie chart, I get to the part where I drag the fields to the chart and it will only allow me to drag one field. Each field I move after that it wants to replace the old with the newly drug field.

    So I continue through the wizard and this is the query it builds for me:
    SELECT [MilliporeID],[IronAndCarbPercent] FROM [ResultsMillipore];

    Another wizard I tried using a query to pull the data from the table:
    SELECT [InertsPercent],Sum([HydrocarbonsPercent]) AS [SumOfHydrocarbonsPercent] FROM [ResultsMilliporeChartQuery] GROUP BY [InertsPercent];



    Those just wont work, so I build the query myself as such:
    SELECT ResultsMillipore.InertsPercent, ResultsMillipore.IronAndCarbPercent, ResultsMillipore.HydrocarbonsPercent FROM ResultsMillipore WHERE ResultsMillipore.MilliporeID = ResultsMillipore.MilliporeIDI think the where at the end is useless as it should only take the information from the currently highlighted record, if I understand it properly, but the value changes appropriately when I move between records on my forms.
    So my issue is that the pie chart wont display all my slices, just one of them. Its got to be something with the way the statement is written but I'm not exactly a pro at SQL and this is my first rodeo with Access. When I edit the chart object I can see all my data, but its all on one row.
    Click image for larger version. 

Name:	chartinfo.JPG 
Views:	6 
Size:	41.9 KB 
ID:	11877

  2. #2
    Ace is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    3
    My apologies, doing some more searching I found this:

    https://www.accessforums.net/queries...ery-26340.html

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

Similar Threads

  1. Pie Chart from Query
    By Currancchs in forum Queries
    Replies: 5
    Last Post: 04-08-2013, 01:30 PM
  2. Replies: 9
    Last Post: 01-29-2013, 06:44 PM
  3. Replies: 1
    Last Post: 06-04-2012, 07:17 PM
  4. Displaying data in a chart
    By emilesilvis in forum Reports
    Replies: 1
    Last Post: 05-16-2011, 10:02 AM
  5. Replies: 2
    Last Post: 07-12-2010, 05:39 AM

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