473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Charts Erroneously Showing Design Data

I have posted this problem a couple of times over the last few years
but have been unable to find a solution that works. Sometimes charts
in reports will display showing the design data instead of the actual
query data the first time they are opened. If the report is closed and
reopened the correct data is shown. This seems to be a nasty Access
bug that has carried across the last few versions at least.

One post that I saw on the subject suggested that the issue was one of
timing and suggested adding the following to the report code:

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
On Error Resume Next
Call TestProc
End Sub

The called procedure is:

Function TestProc()
Dim i As Integer
For i = 1 To 15
DoEvents
Next i
End Function
Problem is, it doesn't actually work. This issue has risen its head on
several databases that I have written and I am still to see a solution
that works.

Any help or ideas would be greatly appreciated.

Mar 7 '06 #1
4 1933
Wayne <cq*******@volc anomail.com> wrote:
: I have posted this problem a couple of times over the last few years
: but have been unable to find a solution that works. Sometimes charts
: in reports will display showing the design data instead of the actual
: query data the first time they are opened. If the report is closed and
: reopened the correct data is shown. This seems to be a nasty Access
: bug that has carried across the last few versions at least.

I have never written nor looked at the structure of a report, so
if this makes no sense, that's my excuse...

Can you have the query return one extra value whose sole purpose
is to be different from that variable's value in the design data?

If the TestProc below knows the design data's value for this
it could close and reopen automatically. I don't know whether the
calling procedure you show is the correct place to put this.
--thelma

: One post that I saw on the subject suggested that the issue was one of
: timing and suggested adding the following to the report code:

: Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
: On Error Resume Next
: Call TestProc
: End Sub

: The called procedure is:

: Function TestProc()
: Dim i As Integer
: For i = 1 To 15
: DoEvents
: Next i
: End Function
: Problem is, it doesn't actually work. This issue has risen its head on
: several databases that I have written and I am still to see a solution
: that works.

: Any help or ideas would be greatly appreciated.

Mar 7 '06 #2
Br
Wayne wrote:
I have posted this problem a couple of times over the last few years
but have been unable to find a solution that works. Sometimes charts
in reports will display showing the design data instead of the actual
query data the first time they are opened. If the report is closed
and reopened the correct data is shown. This seems to be a nasty
Access bug that has carried across the last few versions at least.

One post that I saw on the subject suggested that the issue was one of
timing and suggested adding the following to the report code:

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)
On Error Resume Next
Call TestProc
End Sub

The called procedure is:

Function TestProc()
Dim i As Integer
For i = 1 To 15
DoEvents
Next i
End Function
Problem is, it doesn't actually work. This issue has risen its head
on several databases that I have written and I am still to see a
solution that works.

Any help or ideas would be greatly appreciated.


I haven't encountered this and Ive done a fair bit of charting in Access.

Have you tried changing where the chart appears in the report? (eg. try
putting it in the header or something?).
--
regards,

Br@dley
Mar 7 '06 #3
Br@dley, I'm not sure why you have suggested this, but I gave placing
the chart in the report's header a try, but to no avail. About every
10th time I open the chart it displays the design data or it displays
no data if the design data has been removed. This is driving me nuts!

Mar 7 '06 #4
Wayne wrote:
I have posted this problem a couple of times over the last few years
but have been unable to find a solution that works. Sometimes charts
in reports will display showing the design data instead of the actual
query data the first time they are opened. If the report is closed and
reopened the correct data is shown. This seems to be a nasty Access
bug that has carried across the last few versions at least.


HI Wayne,

I may have posted this years ago when I was heavily involved with
charts, but I've found a behaviour that is somewhat similar and seems to
be related to the MS Chart object rather than Access. My exerience has
been that several charts in MS Word (I have an app that generates single
charts and I and some users copy and paste these into Word for various
reports and briefs) would often, when printing, print the same chart 5
or 6 times instead of 5 or 6 different charts. This would occur even
when the print preview clearly showed the 5 or 6 different charts.
Turning off Word and restarting it would cause a saved document to print
correctly.

NO it's not quite the same as what you've described but I think it's
somewhat similar. This happened with Access 97 and the MS Chart version
that came with it (8, I think). I never came up with a solution to it
and had live with it. 8(
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Mar 8 '06 #5

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

Similar topics

5
3205
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have to code a solution to this it'll probably be done in ASP on a web server, unless there's a significantly better way. I'm looking for a way to create over 100 Excel *charts* programmatically.
0
1869
by: STeve | last post by:
Hey guys, I just want to thank you guys in advance. I am currently having problems displaying some dynamically generated charts using office web components. If I am an admin on the server, I can view all the generated charts with no problem. However if I am not an admin on the server only some of the charts get loaded and on some pages I get this error:
3
1785
by: Wayne | last post by:
I've posted on this problem before and didn't get any replies. I have an intermittent problem where charts do not show the correct data. Occasionally a chart will open and only show one large bar labelled "East" similar to what one sees in the design view of the chart. If I close the chart and reopen it, the correct data is shown. The problem only occurs occasionally and appears to be a bug of some sort. Has anyone else seen this...
3
2097
by: NickJ | last post by:
Dear all, I've encountered an unusual problem having just recently upgraded an Access 97 database to Access 2000 format and was hoping somebody could point me in the direction of a solution. 1. The problem: Essentially, a couple of the reports which contain SeriesLine charts are NOT displaying the series-lines (i.e. the results) on the charts correctly in
0
1175
by: Bilal | last post by:
Hi I'm using Visual Studio 2003 So I developed a Web based Crystal Report, So I got success in this manner. But the Only problem I'm Facing is that, when i make Report in Design Mode in Vusual Studio ASP.Net web form. The whole Report e.g., Data, Charts are displayed in Design Mode, only thing Menu Tabs are not
0
1649
by: gazelle04 | last post by:
Pie charts on Access reports are very ugly. I should repeat this very very ugly. The lines on the pie are not smooth, they are jagged or crooked lines. How could I present the reports to the manager. I wish I could paste the charts here so that you could see how ugly is this. There's many more. The datasheet on pie chart in a design view do not correspond to the actual data. They just showing "East, West, North" etc. Somethime I just copied...
2
1526
by: BerkshireGuy | last post by:
I have a column chart with two series: 1) Number Of Applications 2) Number of Completed Applications. These are in a column format, so it looks like one bar, but colors outline the two numbers. Now I want to have a percentage (Completed Apps/Number Of Apps) over the related column.
10
3091
by: Martin Hughes | last post by:
Hi guys, I was wondering if anyone could give me some advice. I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received from a vehicle on a track. The data flow would be as follows: |-- Workstation 1
5
5204
by: Wayne | last post by:
Several of my Access 2003 databases are exhibiting the same problem under Windows Vista. Charts in forms are not showing any data. Reports are not affected. Charts in reports display as they should. The chart object in forms appears but contains no data. It appears to be a screen painting problem because if I open a report or another form on top of the form that is not showing the chart, when the second report or form is closed, the...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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
10569
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
10325
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...
0
10075
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
9140
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
6847
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
5519
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...
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.