Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overflow Error

Status
Not open for further replies.

justlearning2003

Technical User
May 26, 2003
34
CA
Hi everyone,

I have a crosstab query created and when I run it I get an "Overflow" Error appear. Anyone have any ideas why this is happening?

Thanks
 
Hi,
I apologize for not explaining the post clearly. Here is the SQL, I think it may a divide by zero issue but I cannot find it.

TRANSFORM Sum([tblstjastats]![i_acd_time]+[tblstjastats]![i_acw_time]+[tblstjastats]![i_acd_other_time])/Sum([tblstjastats]![acd_calls]) AS [=AHT]
SELECT tblstjastats.logid
FROM tblstjastats
GROUP BY tblstjastats.logid
PIVOT tblstjastats.fdate;

Thanks
 
Unfortunately, I'm not very knowledgeable about crosstab queries, so I can't help much. I wonder though, if it has something to do with the 'AS [=AHT]' part of the query or, as you said a divide by 0 problem.

Try doing a select query on the the sums you are using for the quotient calculation and see if the divisor is 0 in any or the rows that are returned.

_________
Rott Paws

...It's not a bug. It's an undocumented feature!!!
 
Like Rott Paws I'm not very knowledgeable about Cross Tab Queries, but VBA follows most of the conventions of all of Microsoft's Basic languages, which means that:

1) Division by zero always generates an error message "Division by Zero" is illegal (doesn't make sense, is a waste of time, etc).

2) "Overflow" error, if I remember correctly, always means that the stacks in memory are set to low i.e. the area set aside in Ram to hold the incidental data during calculations manipulations (as in a Cross Tab Query) is insufficient.

With the advent of the Pentium II, II, IV, etc. I haven't seen this kind of an error message in eons. But if I remember correctly, it means you have to make some adjustments in your stack statement in the config.sys file. Maybe someone else here can give you a bit more precise instructions concerning this.

The Missinglinq

"It's got to be the going,
not the getting there that's good!"
-Harry Chapin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top