473,699 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Graph types changing between computers with the same version of access installed

6 New Member
Sorry in advance if this is a silly question as I'm not a full time Access user.

I have developed a simple database to process data for an internal customer but unfortunately the graphs on the reports generated change types depending on the computer used.

The graphs are Unbound objects of the MS.Graph.Chart. 8 class.

Build versions of Access are exactly the same and IT support is "claiming" the profiles are the same.

Can anyone suggest what the cause might be and if there is a work around? i.e. force the graph type etc. Interestingly, if the graph type is corrected manually on the computers which have the problem the change is not saved...
Aug 16 '07 #1
14 2095
Rabbit
12,516 Recognized Expert Moderator MVP
I don't know if this will work but have you tried changing the type through code? Like from the On Open event of the report? I don't know if On Open will work though. Maybe On Load or something similar.
Aug 16 '07 #2
jkwnz
6 New Member
I've tried to tie the chart down with script but haven't had much success.

I have used the following code on report open... but get a error 2771 "The bound or unbound object frame you tried to edit doesn't contain an OLE object"

Private Sub Report_Open(Can cel As Integer)

Dim GraphObj As Object
Set GraphObj = Me![OLEUnbound42].Object.Applica tion.Chart
GraphObj.Type = xlLine

End Sub
Aug 16 '07 #3
Rabbit
12,516 Recognized Expert Moderator MVP
I've tried to tie the chart down with script but haven't had much success.

I have used the following code on report open... but get a error 2771 "The bound or unbound object frame you tried to edit doesn't contain an OLE object"

Private Sub Report_Open(Can cel As Integer)

Dim GraphObj As Object
Set GraphObj = Me![OLEUnbound42].Object.Applica tion.Chart
GraphObj.Type = xlLine

End Sub
Yeah, I was afraid On Open wouldn't work. On Open occurs before controls are loaded. See if you can find an event that happens after On Open. Like On Load or On Render.
Aug 16 '07 #4
jkwnz
6 New Member
Changing the event to on page gives the error message.

Error 1004. Unable to set the Type property of the chart class
Aug 17 '07 #5
Rabbit
12,516 Recognized Expert Moderator MVP
Changing the event to on page gives the error message.

Error 1004. Unable to set the Type property of the chart class
Did you try the On Render event?
Aug 17 '07 #6
jkwnz
6 New Member
Sorry thats not an event option under reports or detail etc...
Aug 17 '07 #7
Rabbit
12,516 Recognized Expert Moderator MVP
Hmm, what about the On Format event?
Aug 17 '07 #8
Killer42
8,435 Recognized Expert Expert
Hmm, what about the On Format event?
What about using an object of the specific type, rather than a generic Object? Might make debugging slightly simpler.
Aug 17 '07 #9
jkwnz
6 New Member
What about using an object of the specific type, rather than a generic Object? Might make debugging slightly simpler.
I would try but unfortunately I'm not that familiar with vb. Could you suggest a alteration of the code above?

Thanks
Aug 19 '07 #10

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

Similar topics

3
4590
by: Jeff | last post by:
Hi I have a report with a graph on it and want to change the minimum and maximum values for the value axis when it is previewed. This can't be done by adding code in the Open event as once the report has started printing the properties can't be changed. It can be done with an MDB by opening it in design mode hidden, making the change, saving it and then opening it in preview mode. However, this obviously doesn't work in an MDE which...
3
1674
by: Jeff | last post by:
Does anyone have any suggestions about a good third party graph control. The one in Access seems confusing to use. Is there a control that could be said to be an industry standard? Jeff
6
2248
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.
0
1212
by: Arno R | last post by:
Hi there, I have a MsGraph-chart in my report. I just want to display a graph for each record (just plain bars for a value each year, nothing fancy) On one PC where only Access 97 is installed everything works fine. On my production-PC where I have installed several Office versions (all in different folders) some graphs just NOT represent the values of the corresponding record...
0
1033
by: jj | last post by:
Hi Newsgroup The diagrams (Graph Types) in Access is very limited. Is it possible some how to entend the graph types - to the same types as used in Excel Thanks in advance Jens Jakob
0
1454
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use Visual Studio .NET 2003, German version, Service Pack 1. The Excel Export works fine on my developement machine, but I cannot export data into Excel on other computers. I tried to run the program on 2 other machines. One is a Windows XP and the...
0
1538
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use Visual Studio .NET 2003, German version, Service Pack 1. The Excel Export works fine on my developement machine, but I cannot export data into Excel on other computers. I tried to run the program on 2 other machines. One is a Windows XP and the...
5
3644
by: CanOfWorms | last post by:
Access 2003 (previous 2000) Windows XP Pro I am fairly new at VBA within Access, learning as I go thorugh forums and discussion groups. I generally find my answers through previous posts, but I have been unable to find how to specifically refer to properties within a graph object. Below is a snippet of code from my module in which the graph ('chart_DataSet') is in a subform ('frm_sub_Chart') that is contained within a control...
4
5056
by: RLN | last post by:
I have a form that does not display correctly. frm1 opens frm2 via a command button. My three problems with frm2: 1. Displays in form view when called from the button. (should be datasheet view) 2. "Shortcut Menu" is set to "Yes", however I cannot right click in the form to go to design view. These properties are already set on frm2:
0
8612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
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...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
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,...
1
6532
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
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 we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
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.