473,486 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Recordset for MS Graph (Chart) through VBA ?

Hello.

I have a MS Access front end/PostgreSQL back-end combination.
There is a report with nested graph (linked master/child fields).
I used saved pass-through queries for both Record Source of the report and
Row Source of the nested graph. It works, but, when I have a lot of data,
the report has several hundreds pages and opening of the report is extremely
slow (cca 20 minutes). It's because for every page it must requery the Row
Source PST query (for the chart) again. I tried to put the select statement
in row source, so that JET queries for graph instead of PostgreSQL, but it
is even slower (cca 50 minutes)...
Now, I would like to avoid requerying for graph for each page. Could I use
the report recordset (that is only once queried) based on the Record Source
saved PST query and just filtrate that recordset and pass it to the graph as
the graph recordset (or Row Source) ? Some RecordsetClone ?
How to pass Recordset to MS Graph by using VBA ? IS there any sample code ?

Thanks in advance,

Zlatko

Nov 13 '05 #1
1 7752
OK, I will answer to myself...
I solved this problem by a local table for graphs. I added code to On Open
event of report that retrieves data by executing PST query on Postgres and
then add such recordset to local JET table. Grapgh Row Source is local
table. Now it is about 20 times faster !

Bye.

"Zlatko Matić" <zl***********@sb.t-com.hr> je napisao u poruci interesnoj
grupi:db**********@ss405.t-com.hr...
Hello.

I have a MS Access front end/PostgreSQL back-end combination.
There is a report with nested graph (linked master/child fields).
I used saved pass-through queries for both Record Source of the report and
Row Source of the nested graph. It works, but, when I have a lot of data,
the report has several hundreds pages and opening of the report is
extremely
slow (cca 20 minutes). It's because for every page it must requery the Row
Source PST query (for the chart) again. I tried to put the select
statement
in row source, so that JET queries for graph instead of PostgreSQL, but it
is even slower (cca 50 minutes)...
Now, I would like to avoid requerying for graph for each page. Could I
use
the report recordset (that is only once queried) based on the Record
Source
saved PST query and just filtrate that recordset and pass it to the graph
as
the graph recordset (or Row Source) ? Some RecordsetClone ?
How to pass Recordset to MS Graph by using VBA ? IS there any sample code
?

Thanks in advance,

Zlatko

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2212
by: linda | last post by:
I can use GD::Graph to generate a graph with two-axes by using two datasets and generate a stacked bar chart by using multiple datasets now. However, I want to generate a mixed-type graph which...
1
7911
by: JD Kronicz | last post by:
Hi .. I have an issue I have been beating my head against the wall on for some time. I am trying to use late binding for MS graph so that my end users don't have to worry about having the right...
6
2235
by: David W. Fenton | last post by:
Is MS Graph really completely useless in Access 97? I uninstalled and re-installed to get the Office 97 version of MS Graph, but I see no way whatsoever to insert dynamic data into the chart....
38
2887
by: Charles Law | last post by:
Am I going mad, or is there no control in .NET that will allow me to display a simple graph of a series of points held in an array? Please tell me I'm wrong. Charles
1
2978
by: Robin Tucker | last post by:
Hi, I am embedding various things into a Microsoft Word document. I want to embed and automate a chart control. I can embed an Excel.Chart.8 into my Word document manually (no problemo), but...
1
3159
by: Saintor | last post by:
This is for A97 in runtime or MDE mode. My intent was to define a temporary query using the recordsetclone property / filter / orderby. The controlsource of my chart would be based on a grouped...
2
3739
by: smith.mariya | last post by:
hi, i am mariya. i am working on vb.net. i have created the powerpoint addin. i have inserted the chart on the slide through vb.net code. now, i want to remove the gridlines on the chart and want...
0
1426
by: naish | last post by:
Hi, My code drawing a graph in excel sheet. There one colum for lower pressure and another one for upper pressure. Any howi can draw a series for one pressure but i am not able to draw two series...
3
4687
by: The Frog | last post by:
Hi guys, I have never touched really on this area before with forms and reports, and now I would like to be able to incorporate some graphs / charts for a new little app I am building, and I...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
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
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
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,...
1
4864
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
4559
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...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.