A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Invalid scale" error during Crosstab



 
 
Thread Tools Display Modes
  #1  
Old October 10th, 2007, 12:16 AM posted to microsoft.public.access.queries
Bruce Meneghin
external usenet poster
 
Posts: 119
Default "Invalid scale" error during Crosstab

I received the error "Invalid scale for decimal data type" while trying to
execute this crosstab query (created with crosstab wizard)

TRANSFORM Sum(INV_ages.Acres) AS SumOfAcres
SELECT INV_ages.period, Sum(INV_ages.Acres) AS [Total Of Acres]
FROM INV_ages
GROUP BY INV_ages.period
PIVOT INV_ages.Age;

INV_ages is a query. I will spare you its SQL for now.

Any clue what might be causing this strange error. I have executed this
query successfully in the past.
  #2  
Old October 10th, 2007, 04:14 PM posted to microsoft.public.access.queries
Michel Walsh
external usenet poster
 
Posts: 2,404
Default "Invalid scale" error during Crosstab

Is it possible the SUM generates a value larger than what the given scale
allowed? (You are using decimal data type, not floating point type, yes? )


Vanderghast, Access MVP


"Bruce Meneghin" wrote in message
...
I received the error "Invalid scale for decimal data type" while trying to
execute this crosstab query (created with crosstab wizard)

TRANSFORM Sum(INV_ages.Acres) AS SumOfAcres
SELECT INV_ages.period, Sum(INV_ages.Acres) AS [Total Of Acres]
FROM INV_ages
GROUP BY INV_ages.period
PIVOT INV_ages.Age;

INV_ages is a query. I will spare you its SQL for now.

Any clue what might be causing this strange error. I have executed this
query successfully in the past.



  #3  
Old October 10th, 2007, 11:22 PM posted to microsoft.public.access.queries
Bruce Meneghin
external usenet poster
 
Posts: 119
Default "Invalid scale" error during Crosstab

I don't think so. I was able to end-run the problem by changing the source
query to a make-table query and then doing a crosstab on the table. Thanks
for the thought.
Bruce

"Michel Walsh" wrote:

Is it possible the SUM generates a value larger than what the given scale
allowed? (You are using decimal data type, not floating point type, yes? )


Vanderghast, Access MVP


"Bruce Meneghin" wrote in message
...
I received the error "Invalid scale for decimal data type" while trying to
execute this crosstab query (created with crosstab wizard)

TRANSFORM Sum(INV_ages.Acres) AS SumOfAcres
SELECT INV_ages.period, Sum(INV_ages.Acres) AS [Total Of Acres]
FROM INV_ages
GROUP BY INV_ages.period
PIVOT INV_ages.Age;

INV_ages is a query. I will spare you its SQL for now.

Any clue what might be causing this strange error. I have executed this
query successfully in the past.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.