473,387 Members | 1,542 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,387 software developers and data experts.

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(Cancel 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 1899
Wayne <cq*******@volcanomail.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(Cancel 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(Cancel 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
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...
0
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...
3
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...
3
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. ...
0
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...
0
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....
2
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...
10
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...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...

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.