473,670 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Graph in Access 97

I have created a unbound object frame and selected MS Graph and use my
table to create my graph. Note I did not use the wizard.
I open my MS Graph to change the stuff. How can I change the axises?
For example instead of the percent safety audits closed on the x axis,
i would put the safety audit date? I believe its a little different
than excel
I do not have alot of VBA experience.

Nov 29 '05 #1
1 2798
Br
Heather wrote:
I have created a unbound object frame and selected MS Graph and use my
table to create my graph. Note I did not use the wizard.
I open my MS Graph to change the stuff. How can I change the axises?
For example instead of the percent safety audits closed on the x axis,
i would put the safety audit date? I believe its a little different
than excel
Do you mean how do you change the field for an axis? You'd need to
change the recordset you are passing to the graph object.

If you need to swap the axis or something else at design time
double-click the MSGraph to open the MSGraph object.
I do not have alot of VBA experience.

For VBA do a search on MS's site for the MSGraph object reference help
file.

Here is some examples I've what I've used:

Function SetChartXTitle( ByRef pGraphObject As Object, pChartPeriod As
String)
DoCmd.Hourglass True
Dim MyGraph As Object
Set MyGraph = pGraphObject.Ob ject.Applicatio n
On Error Resume Next
If pChartPeriod = "Monthly" Then
MyGraph.Chart.A xes(1, 1).HasTitle = True
MyGraph.Chart.A xes(1, 1).AxisTitle.Te xt = "Month"
Else
MyGraph.Chart.A xes(1, 1).HasTitle = True
MyGraph.Chart.A xes(1, 1).AxisTitle.Te xt = "Week Commencing"
End If
MyGraph.Update
Set MyGraph = Nothing
DoCmd.Hourglass False
End Function

Note:
You need to turn on HasTitle first
You will need to reference the MSGraph object to do the above, or just
refer to the object directly instead

I've set errors to resume next as I was getting some weird errors but
when ignored it worked... there are some "funnies" when dealing with
MSGraph.
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 29 '05 #2

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

Similar topics

25
3779
by: Magnus Lie Hetland | last post by:
Is there any interest in a (hypothetical) standard graph API (with 'graph' meaning a network, consisting of nodes and edges)? Yes, we have the standard ways of implementing graphs through (e.g.) dicts mapping nodes to neighbor-sets, but if one wants a graph that's implemented in some other way, this may not be the most convenient (or abstract) interface to emulate. It might be nice to have the kind of polymorphic freedom that one has with,...
2
2529
by: Jeff Blee | last post by:
I am hoping someone can help me. I am making a Access 97 app for a person and have run up against a problem to do with MS Graph. There is a table that has a number of data elements and a date field and entries are entered each month. A graph is required that has three of the data elements represented basically on the y axis and time as months along the x axis. So for each month there is a group of three columns representing the data...
6
2247
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. The wizard has got to be the worst wizard I've seen in Access, because it assumes way, way too much about what you want. And then when you click FINISHED, what you get has absolutely nothing to do with what you chose for the graph.
2
2503
by: Zlatko | last post by:
I am dealing with very frustrating problem: I don't know how to pass parameters to the stored procedure which is row source of MS Graph in Access PROJECT form. The problem apears because there is no Input Parameters property on the MS Graph (unlike forms)... Of cours, I can pass parametrs explicitely, using EXEC NameOfStoredProcedure 'value1','value2' etc...but I should reference some controls from other form EXEC NameOfStoredProcedure,...
8
2438
by: Jef Driesen | last post by:
I'm working on an image segmentation algorithm. An essential part of the algorithm is a graph to keep track of the connectivity between regions. At the moment I have a working implementation, but it's not flexible enough anymore and I need something more advanced. I already have a data structure in mind, but I don't know how to implement that nicely in C++. // Main class which holds the lists with // edges and vertices. These lists are...
2
2875
by: MLH | last post by:
A97 Am having difficulty displaying graph in Form View that I see fine in graph control on form opened in design view. I know I'm doing something wrong. If I open the form in design view - I see the graph in the graph control. If I dbl-clik the graph control, microsoft graph opens and displays the graph fine there too.
1
3859
by: Roger Oshaug | last post by:
Access 2003 I have a simple line graph with one line and I need an extra horizontal line in that graph. I want something similar to this, (without the vertical line): http://www.peltiertech.com/Excel/Charts/ComboCharts.html#AddLine except the value for the "height" of the horizontal line will change for each record.
12
2869
by: Nathan Harmston | last post by:
Hi All, Currently I am working on a generic graph library so I can do various graph based analysis for various projects I have ideas for. Currently I am implementing Graph as a wrapper around a dictionary. Currently my implementation works like this: t = Graph() n1 = Node("Node1") n2 = Node("Test2")
2
2077
by: savas_karaduman | last post by:
I supposed that creating graph with access would be as easy as how I could with Excel. But it seems to me that there is some tricky point here. What i am trying to do and what i got is as follow: Suppose that there is a table named (TPerson) in which field names are "Name"<text>", "Age"<number-byte>. I would like to get a simple graph, X-axis stands for "Name", Y-axis stands for "Age". I follow procedure by using wizard but result is...
3
4697
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 need some guidance. Can someone point me in the right direction? 1/ What is the difference between MS Chart and MS Graph? 2/ Which is better to work with for Access 97?
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8591
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8660
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7415
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4209
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4390
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2041
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1792
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.