473,326 Members | 2,680 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,326 software developers and data experts.

Using Microsoft graphs to Display In Subform

ChaseCox
294 100+
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.
Jan 16 '07 #1
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?
Jan 17 '07 #2
nico5038
3,080 Expert 2GB
Did you try to insert a Graph object on a form ?
Just use your query as the source.

Nic;o)
Jan 17 '07 #3
ChaseCox
294 100+
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.
Jan 18 '07 #4
nico5038
3,080 Expert 2GB
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)
Jan 18 '07 #5
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?
Jan 18 '07 #6
ChaseCox
294 100+
No, I can not make it a make table. I will try to tamper with the record source.
Jan 18 '07 #7
ChaseCox
294 100+
This is what the chart lists as the Row Source.

Expand|Select|Wrap|Line Numbers
  1. TRANSFORM Count([PROD_CODE]) AS [CountOfPROD_CODE]
  2. SELECT (Format([CLAIM DATE],"MMM \'YY"))
  3. FROM [Labor Query]
  4. GROUP BY (Year([CLAIM DATE])*12 + Month([CLAIM DATE])-1),(Format([CLAIM DATE],"MMM \'YY"))
  5. 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.
Jan 18 '07 #8
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.
Jan 18 '07 #9
ChaseCox
294 100+
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?
Jan 18 '07 #10
NeoPa
32,556 Expert Mod 16PB
I guess I wasn't clear enough.
  1. Save the string that is there already.
  2. Change the design to remove the RecordSource (Change it to empty).
  3. 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.
  4. Requery the object (still in the Event Procedure).
Does that explain it?
Jan 18 '07 #11

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

Similar topics

7
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 |...
22
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
0
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...
5
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...
4
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. ...
1
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
3
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...
2
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...
4
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...
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
0
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...
1
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
0
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...
0
isladogs
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...

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.