E
e133
I have a query which calculates a groups % of the total. I am using a Dsum to
calculate the % but when I introduce a date parameter i get the error message
"The expression you entered as a query parameter produced this error: Access
cant find the name 'Enter start date' you entered in the expression". The %
column is null in the query results. Any help with correct dsum format would
be appreciated.
Without the parameter the dsum returns the correct value. Below is the sql
PARAMETERS [Enter Start Date] DateTime, [Enter End Date] DateTime;
SELECT [Create].[Name], [Cost]/DSum("Cost","Summary") AS [% of Total]
FROM [Create]
WHERE ((([Create].[T])="C") AND (([Create].[Due Date]) Between [Enter Start
Date] And [Enter End Date]))
GROUP BY [Create].[Name];
calculate the % but when I introduce a date parameter i get the error message
"The expression you entered as a query parameter produced this error: Access
cant find the name 'Enter start date' you entered in the expression". The %
column is null in the query results. Any help with correct dsum format would
be appreciated.
Without the parameter the dsum returns the correct value. Below is the sql
PARAMETERS [Enter Start Date] DateTime, [Enter End Date] DateTime;
SELECT [Create].[Name], [Cost]/DSum("Cost","Summary") AS [% of Total]
FROM [Create]
WHERE ((([Create].[T])="C") AND (([Create].[Due Date]) Between [Enter Start
Date] And [Enter End Date]))
GROUP BY [Create].[Name];