A lot of reporting and statistical packages will have a correlation coefficient expression, but Access seems to be missing this one from its reportoire.
Below is an example that creates a correlation coefficient based on two fields of data. It is assumed that the data is normally distributed. Field1 and Field2 as well as table name can be substituted by your fields, table, etc.
The number you get will be the same as you would with the CORREL formula in Excel.
Below is an example that creates a correlation coefficient based on two fields of data. It is assumed that the data is normally distributed. Field1 and Field2 as well as table name can be substituted by your fields, table, etc.
Code:
SELECT (Count([Field1])*Sum([Field1]*[Field2])-Sum([Field1])*Sum([Field2]))/(Sqr((Count([Field1])*Sum([Field1]^2)-(Sum([Field1])^2))*(Count([Field2])*Sum([Field2]^2)-(Sum([Field2])^2)))) AS [Correlation Coefficient]
FROM tbl_Correlation;
The number you get will be the same as you would with the CORREL formula in Excel.