G
Guest
I'm having a table with the fields of 2005Q1FC, 2005Q1AC, 2005Q2FC, 2005Q2AC
for value that correspond to forecasts and actual values for a given quarter.
Now I have created a query and the SQL statement looks like this;
SELECT Data.Customer, Data.Product,
Sum([Data]![2005Q1AC]+[Data]![2005Q2AC]+[Data]![2005Q3AC]+[Data]![2005Q4AC])
AS Expr1
FROM Data, RoyaltyIntervalls
GROUP BY Data.Customer, Data.Product;
To be honest I have never really learned how to use calculations in querys
and I guess I'm missing some fundamentals in properties of the values etc.
This is probably why I get a result of 195 as the first sum and not the 5
which I manually can see it should be. Does anyone know what I do wrong? I
would also appreciate it if someone could provide me with a link of how to
handle queries in general.
Many thanks in advance / Bell
for value that correspond to forecasts and actual values for a given quarter.
Now I have created a query and the SQL statement looks like this;
SELECT Data.Customer, Data.Product,
Sum([Data]![2005Q1AC]+[Data]![2005Q2AC]+[Data]![2005Q3AC]+[Data]![2005Q4AC])
AS Expr1
FROM Data, RoyaltyIntervalls
GROUP BY Data.Customer, Data.Product;
To be honest I have never really learned how to use calculations in querys
and I guess I'm missing some fundamentals in properties of the values etc.
This is probably why I get a result of 195 as the first sum and not the 5
which I manually can see it should be. Does anyone know what I do wrong? I
would also appreciate it if someone could provide me with a link of how to
handle queries in general.
Many thanks in advance / Bell