I have a fairly simple table containing orders placed (410,412 rows) with the following pertinent columns:
Order#: Number (Double)
Date: Date/Time
#Items: Long Integer
OrderAmount: Currency
I have a query that is trying to return the orders from the past week with an average item price less than $175. This query has worked with no problems up until about 2 weeks ago when I started to get a popup containing only the word "Overflow" when I run the query.
I have set up a test query to narrow down the issue and have found the following. I can set up the following query and it will run with no issues:
Column 1 - Int([Date]) with criteria ">= (Date() - 7) And <= (Date() - 1)"
Column 2 - Order#
Column 3 - Date
Column 4 - Round([OrderAmount]/[#Items], 2)
As I said, running this query works fine. However, if I add the criteria "< 175" for column 4 above then I start to get the Overflow error!
Any ideas on why adding this criteria makes any difference? The smallest average item price is $27.88 and the largest is $2274.47 so I don't see how this could be a number format issue (which is what most of my google searches regarding the Overflow error have hinted at).
Order#: Number (Double)
Date: Date/Time
#Items: Long Integer
OrderAmount: Currency
I have a query that is trying to return the orders from the past week with an average item price less than $175. This query has worked with no problems up until about 2 weeks ago when I started to get a popup containing only the word "Overflow" when I run the query.
I have set up a test query to narrow down the issue and have found the following. I can set up the following query and it will run with no issues:
Column 1 - Int([Date]) with criteria ">= (Date() - 7) And <= (Date() - 1)"
Column 2 - Order#
Column 3 - Date
Column 4 - Round([OrderAmount]/[#Items], 2)
As I said, running this query works fine. However, if I add the criteria "< 175" for column 4 above then I start to get the Overflow error!
Any ideas on why adding this criteria makes any difference? The smallest average item price is $27.88 and the largest is $2274.47 so I don't see how this could be a number format issue (which is what most of my google searches regarding the Overflow error have hinted at).