View Full Version : "overflow" in graph.


Fuga
04-08-2002, 07:13 AM
I want a form with a graph on it.

The "graph-data-field" is a calculation on two other fields in the same query, calculating the difference (%) between them:
(([Field1]-[Field2])/([Field1])*100)

When I use the wizard to create the graph there is an overflow message. That canīt be right, can it?

Does anyone know what Iīm doing wrong?
How do I round of the decimals in the calculated field (if thatīs the problem)?

Fuga.

Peter D
04-08-2002, 12:09 PM
If Field1 is 0, you'll get an overflow.

You may need special coding to account for this situation. Ex.:

IIF(Field1=0,<do this>,<else do this> )

Hope this helps,

Peter De Baets
Peter's Software - MS Access Tools for Developers http://www.peterssoftware.com

Fuga
04-09-2002, 08:31 AM
Thanks Peter D!

I had some "0" and even some nulls. I solved it by excluding those records from the query.

However, when I create another graph from the same query (with only one field, not calculated) I get an "out of memory" message.

The thing is I built a similar db once before, and I never got this problem.

Any ideas?

Fuga.