in my query i have 2 calculated fields (SumVL and SumP4)i want to divide one by the other([SumVL]/[SumP4]). I get a message box "enter parameter value" for each itenm (SumVL and SumP4) . i don't enter any value, and then the query calculates correctly. how can i eliminate the parameter value message?
here is what it looks like in SQL:
SELECT Sum(QyP4vVLP4.VLTarget) AS SumVL, Sum(QyP4vVLP4.CalcP4) AS SumP4, QyP4vVLP4.Industry, [SumVL]/[SumP4] AS Ratio
FROM QyP4vVLP4
GROUP BY QyP4vVLP4.Industry, [SumVL]/[SumP4]
HAVING (((QyP4vVLP4.Industry)="ADVERT"));
here is what it looks like in SQL:
SELECT Sum(QyP4vVLP4.VLTarget) AS SumVL, Sum(QyP4vVLP4.CalcP4) AS SumP4, QyP4vVLP4.Industry, [SumVL]/[SumP4] AS Ratio
FROM QyP4vVLP4
GROUP BY QyP4vVLP4.Industry, [SumVL]/[SumP4]
HAVING (((QyP4vVLP4.Industry)="ADVERT"));