I would like to show the sum total of new respondents in 1 day ago (i.e. yesterday and today) and the sum total of new respondents in the last 30 days in a query.
I tried this SQL code in a query called "qryNoOfResponsesByDay" but it is not showing the corrrect results: -
Code: Select all
SELECT tblFormResponses.Timestamp AS [New Respondents 1 day ago], tblFormResponses.Timestamp AS [Respondents in the last 30 days], Count(tblFormResponses.[BARP member number]) AS [CountOfBARP member number]
FROM tblFormResponses
GROUP BY tblFormResponses.Timestamp
HAVING (((tblFormResponses.Timestamp)<Date()-1) AND ((tblFormResponses.Timestamp)<Date()-30));
https://1drv.ms/f/s!AtOdPG-IN8CYgcV-YYl ... Q?e=nH6Iu2
Thanks,
wire_jp