I built a query to take totalcount of distinct cardnumbers of individuals accessing a datacenter. The code looks like so:
SELECT Count(EntryData_2008_02_to_04.CardNumber) AS TotalCount
FROM [Select DISTINCT EntryData_2008_02_to_04.CardNumber, EntryData_2008_02_to_04.EntryDate FROM EntryData_2008_02_to_04 AS EntryData_2008_02_to_04 WHERE EntryData_2008_02_to_04.EntryDate BETWEEN StartDate And EndDate]. AS [%Alias];
Instead of having date parameters popup for me to input the dates, I have created a dialog form to allow the user to input the dates in one single window. I need to add the following code in place of the StartDate and EndDate above.
Forms!Date Prompt for Total Granted Access!Text0 And
(EntryData_2008_02_to_04.EntryDate)=Forms!Date Prompt for Total Granted Access!Text2
Please help me because when I try to fix the code with the code I need, it always gives me a count of 0. That is obviously not correct.
Thank you for any help!
SELECT Count(EntryData_2008_02_to_04.CardNumber) AS TotalCount
FROM [Select DISTINCT EntryData_2008_02_to_04.CardNumber, EntryData_2008_02_to_04.EntryDate FROM EntryData_2008_02_to_04 AS EntryData_2008_02_to_04 WHERE EntryData_2008_02_to_04.EntryDate BETWEEN StartDate And EndDate]. AS [%Alias];
Instead of having date parameters popup for me to input the dates, I have created a dialog form to allow the user to input the dates in one single window. I need to add the following code in place of the StartDate and EndDate above.
Forms!Date Prompt for Total Granted Access!Text0 And
(EntryData_2008_02_to_04.EntryDate)=Forms!Date Prompt for Total Granted Access!Text2
Please help me because when I try to fix the code with the code I need, it always gives me a count of 0. That is obviously not correct.
Thank you for any help!