473,408 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How to draw graphs using query and open the form in pivot chart view using vba

16
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm stDocName, acFormPivotChart
  2.  
I am using this statement to open a form in pivotchart view.

Also, in the pivotchart view of the form,I dragged the columns that I needed for the graph and when I close the form and reopen the same form with a button click,the form opens up with empty barchart in pivotchart view. Is there a way to populate the graph based on the query while the form is opened in pivot chart view?

My question is: How to create Pivot chart with graphs populated from a query using vba .Could you please provide any sample vba code that runs a query ,creates a pivot chart in a form and then opens the form as a report on a button click. Thanks for your help !
Nov 30 '11 #1
0 1266

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: SMBR via AccessMonster.com | last post by:
I am not completely new to Access, but I have run into a road block in trying to normalize my database. I am not sure if I am using the correct structure here. I have tried to post a few times...
0
by: bjaj | last post by:
Hi I have made a form in chart view based on query named "Q_Fejl_3_month_back" and I can se the following in the property "Record source" : TRANSFORM Sum() AS SELECT FROM GROUP BY PIVOT ; ...
0
by: francophone77 | last post by:
I created a button to open a pivotchart, but each time I click the button, it comes up in form view and I have to switch the view to pivotchart view in order to see the chart. Is there anyway...
2
by: PC Datasheet | last post by:
From: "Martin" <Martin@discussions.microsoft.com> Subject: Pivot Chart Date: Monday, February 13, 2006 3:59 PM I am trying to learn how to use pivot charts. In 1995, if John took vacation 10/15...
1
by: erbrose | last post by:
Hey, fairly new to vba. here is what i am trying to achieve in a nutshell. I want a user to be able to select a record from a listbox or combo box (values retrieved from a table). once they select...
1
by: devagupt | last post by:
i have a form called get downtime data. WHen information is entered into it and the button "get downtime data" pressed , it displays the results of a query. WHen i view the query in pivot chart view...
1
by: thomas.wordsworth | last post by:
This is a bit of a two-part question. 1. Is there a way to control what filters are placed on a pivot chart via vba. I can easily change the underlying query and refresh pivot chart but it's...
5
by: fd1 | last post by:
Hi All, I created a pivot chart using Auto Form Pivot Chart. I'm trying to get to the RowSource query behind my chart but can't seem to locate it. I need to change the legend text. Any ideas? ...
0
by: munkee | last post by:
All, Basically I am trying to change my pivot chart a bit more dynamically. I have a sub form with a query recordsource which contains all the fields I would require to create TWO pivot charts....
1
by: munkee | last post by:
I cant figure out how to construct a query for my pivot chart in access. I basically have the following table: tblCorrective CorrectiveLinkID - Number - FK CorrectiveActionID - Autonumber...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.