I am using Access 97 to build my Database. I would like when my query is run, to populate a graph from the results of the query. Currently I am using a form to populate the query, and the query is then displaying the resulting records into a datasheet view on a subform. It is the resulting records I would like displayed on the graph. The fields I want on the graph are Prod_Code and Claim_Date. Thanks for the help.
10 3634 NeoPa 32,556
Expert Mod 16PB
I'm not even sure Access does graphing (I'll probably be proved wrong here).
Excel, of course, handles them very well. Might that be a viable solution?
Did you try to insert a Graph object on a form ?
Just use your query as the source.
Nic;o)
Yes, I am using the insert graph function, and referencing my query. The problem is that the when the form is opened, the query is run by the graph and produces useless data. I need it to wait until I run the query from the form.
Hmm, for this type of timing problems I use to switch from a query to a temp table as a source for the graph. Is changing your query into a maketable query an option ?
Nic;o)
NeoPa 32,556
Expert Mod 16PB
Yes, I am using the insert graph function, and referencing my query. The problem is that the when the form is opened, the query is run by the graph and produces useless data. I need it to wait until I run the query from the form.
I've never used this myself, but if it's like forms and reports then it will have a RecordSource or DataSource property somewhere. Is it possible to leave this empty in the design of the graph and populate it using VBA code as-and-when you're ready for it to work?
No, I can not make it a make table. I will try to tamper with the record source.
This is what the chart lists as the Row Source. - TRANSFORM Count([PROD_CODE]) AS [CountOfPROD_CODE]
-
SELECT (Format([CLAIM DATE],"MMM \'YY"))
-
FROM [Labor Query]
-
GROUP BY (Year([CLAIM DATE])*12 + Month([CLAIM DATE])-1),(Format([CLAIM DATE],"MMM \'YY"))
-
PIVOT [PROD_CODE];
Any ideas how I can alter this to do what I am looking for, which is make the graph once I run the query. I am using the Insert chart function.
NeoPa 32,556
Expert Mod 16PB
I'm not sure what you want done differently.
Basically, you put something very like the code that's there already. Changes would be made depending on what you require to be different from the original.
I'm not sure what you want done differently.
Basically, you put something very like the code that's there already. Changes would be made depending on what you require to be different from the original.
It is running without me telling it to, basically. I need to do something similair to chaning its record source on the fly. Any ideas?
NeoPa 32,556
Expert Mod 16PB
I guess I wasn't clear enough. - Save the string that is there already.
- Change the design to remove the RecordSource (Change it to empty).
- Put in the event procedure (OnClick of Command Button or whatever) an assignment of the string you saved earlier into the RecordSource of the object.
- Requery the object (still in the Event Procedure).
Does that explain it?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Florian Lindner |
last post by:
Hello,
I'm looking for a program or python library to draw graphs.
They should look like the that:
/--------\ /--------\
| Node A | ------ belongs to ----> | Node B |...
|
by: MJR |
last post by:
Hi,
just wondering what options I would have if I wanted to use Python to
produce real-time graphs. Is there any plotting package suitable for
this.
Thanks,
Mike
|
by: MooMaster |
last post by:
This is more of a wxPython centric question, but not seeing reference
to this on the wx group I thought I'd try here since many here also use
wxPython toolkit. I started learning GUI development...
|
by: Deborah V. Gardner |
last post by:
I would like to use "Yes" and "No" checkboxes on a subform. The problem
is that when I click the Yes checkbox on the subform, all of the
checkboxes are checked.
Currently, I have a field...
|
by: Kathy |
last post by:
What is the standard technique for handling the fields in the following
scenario on a continuous form?
Multiple Divisions. Each Division has multiple Buildings. Each Building has
a Supervisor.
...
|
by: Panther240 |
last post by:
How can I develop graphs(Pie Diagrams,Charts etc...) in ASP.net.I want
to display the graphs in a browser.I have a SQL Database from where I
pull the data to display in graphs
|
by: google |
last post by:
I'm developing an application for use within my company in Access 2003.
I'm new to '03, the application I did for my former employer was in
'97. The two applications have similar functionality...
|
by: robert.q.johnson |
last post by:
Help. I am trying to create a web page in C# to display two rows of
data
with bar graphs (an image 1px). I get the max value of the row and use
the following formula to size the height of the...
|
by: Regnab |
last post by:
I've got a form - "frmLookup" (with a subform) that works very happily
on its own. The form has a list box, which when updated requeries the
subform to display the appropriate results.
The...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |