I have this query. It counts how many records a person has based on a date.
It spits out the persons name and how many records for them for the current day. Simple Enough.
I can remake the same query but instead of the WHERE being the current date it looks at the entire month. Which is just a small change.
What I want (if possible) is to put these both in one query. So the first Column is the persons Name, the second is a count of records that user has in the current month and the third column is a count of records that person has on the current day.
Iv tried a few things and (if it doesn't error out) I will get either no data or everything. Some assistance would be greatly appreciated.
Code:
SELECT queryName.UserName, Count(*) AS [Count]
FROM queryName
WHERE (((queryName.Date)=Date()))
GROUP BY queryName.UserName;
I can remake the same query but instead of the WHERE being the current date it looks at the entire month. Which is just a small change.
What I want (if possible) is to put these both in one query. So the first Column is the persons Name, the second is a count of records that user has in the current month and the third column is a count of records that person has on the current day.
Iv tried a few things and (if it doesn't error out) I will get either no data or everything. Some assistance would be greatly appreciated.