Results 1 to 5 of 5
  1. #1
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43

    How to opena report in pivot chart view by default

    I like to open a report as a pivot chart from my query.
    How to open a report by making the default view of report as pivot chart?.


    I am able to manually create a pivot chart by clicking pivot chart view from the sql view in a report. Then I pull in the required columns to the x axis and y axis and a graph is generated. I do not know how to save it and open the report by default in pivot chart view every time I click a button.

  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
    I don't know if this is possible. Pivot Chart is not available parameter in the report's Default View property. You can build a graph on a report that uses pivot query as data source.
    Last edited by June7; 12-01-2011 at 01:40 AM.
    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
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43
    I ran the below query :
    Query :
    SELECT Table1.[Arrival Year], Table1.[Abend Type], Count(*) AS Expr1
    FROM Table1
    WHERE (((Table1.[App Name])="APP1") AND ((Year([ArrivalTime]))=Year(Date())-1) AND ((Month([ArrivalTime]))>=Month(Date())-1)) OR (((Table1.[App Name])="APP1") AND ((Year([ArrivalTime]))=Year(Date())) AND ((Month([ArrivalTime]))<Month(Date()))) GROUP BY Table1.[Arrival Year], Table1.[Abend Type] HAVING (((Count(Table1.Case))>5));
    Result of the query looks like the attached document "QueryResults" :


    How can I use the above details (query and its results ) to create a graph/chart using MsAccess that looks like the sample pivot chart that I have attached . I need X axis With Date as Main category and Abend Type as Subcategory showing the values as seen in the sample chart below and y axis having counts from the query.
    Thanks for your help!
    Last edited by baba; 11-30-2011 at 06:16 PM. Reason: Added sample chart and query results

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Did you build that graph with Excel? I don't think Access can accomplish that double X axis labeling. The best I can do is to concatenate the Arrival and Abend fields of the sample data. The graph's RecordSource then is:
    SELECT Format([ArrivalYear],"mmm"" '""yy") & " " & [AbendType] AS X, [Expr1] FROM Table1;
    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
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43
    I was able to create a pivot chart with two columns in X axis in MsAccess also. First created a query,then created a pivot chart in a form. This was the only option that worked for me . Thanks

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

Similar Threads

  1. Pivot Chart
    By Phoenyxsgirl in forum Forms
    Replies: 4
    Last Post: 11-08-2011, 02:04 PM
  2. pivot chart
    By jscriptor09 in forum Access
    Replies: 0
    Last Post: 07-10-2011, 08:16 AM
  3. Query default to Pivot Table view
    By Theremin_Ohio in forum Access
    Replies: 1
    Last Post: 03-30-2011, 09:17 AM
  4. Replies: 2
    Last Post: 07-12-2010, 05:39 AM
  5. Design view not showing data (Pivot Chart)
    By thestappa in forum Reports
    Replies: 0
    Last Post: 06-24-2010, 09:59 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