"Overflow" error on SELECT query

K

Kanga

Hi,

I have created a database made up of just a few tables.
I then created SELECT queries based on another SELECT query which refers to
a third one.
So it looks like this
Query A: SELECT... FROM ....
Query B: SELECT... FROM Query A
Query C: SELECT... FROM Query B
Query D: SELECT... FROM Query C
The last query generates the data and a couple of seconds later I get an
error which says "Overflow".
I assume this is due to the fact that the SELECT query I'm running is made
of multiple subqueries. Is their such limitation?

Thanks in advance,
 
D

Douglas J. Steele

Are you doing any calculations in any of the queries?

That's really the only reason I can think of why you'd get an Overflow
error: you're adding together values and the total is larger than the data
type can hold.
 
K

Kanga

Hi Doug,

Thanks for your quick answer.
I do indeed perform calculations such as SUM or / or *.
The fields that I'm doing this from are set to Double.

Should I change that to something else?

Thanks in advance,
 
K

Kanga

Also I should mention that this is happening on my last query which is simply
doing a union of two queries. The queries run fine separately. That is what I
will do for now but I'd be quite curious to understand what is causing this.

Thanks!
 
D

Douglas J. Steele

That makes no sense to me!

Does it happen just running the query, or are you using the query in some
way (as a recordset for a form or report, for instance)?
 
H

Howard Burgman

Kanga said:
Hi Doug,

Thanks for your quick answer.
I do indeed perform calculations such as SUM or / or *.
The fields that I'm doing this from are set to Double.

Should I change that to something else?

Thanks in advance,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top