A
AJ
I am running this in VBA using a dlookup with it accessing the access query:
SELECT (1 / Sum(1)) * Sum((X - (SELECT Avg(A.X) FROM postcorrel AS A)) *
(Y - (SELECT Avg(A.Y) FROM postcorrel AS A))) / ((SELECT StDevP(A.X) FROM
postcorrel AS A) * (SELECT StDevP(A.Y) FROM postcorrel AS A)) AS correl
FROM postcorrel
This query returns a correlation value. I have never had issue with this
query but now when I run it with approx. 5000 records I get a:
Run-Time Error '6' overflow ERROR
CAN ANYONE PLEASE HELP AND TELL ME WHAT THIS IS AND HOW TO FIX IT.
Thanks, AJ
SELECT (1 / Sum(1)) * Sum((X - (SELECT Avg(A.X) FROM postcorrel AS A)) *
(Y - (SELECT Avg(A.Y) FROM postcorrel AS A))) / ((SELECT StDevP(A.X) FROM
postcorrel AS A) * (SELECT StDevP(A.Y) FROM postcorrel AS A)) AS correl
FROM postcorrel
This query returns a correlation value. I have never had issue with this
query but now when I run it with approx. 5000 records I get a:
Run-Time Error '6' overflow ERROR
CAN ANYONE PLEASE HELP AND TELL ME WHAT THIS IS AND HOW TO FIX IT.
Thanks, AJ