psycoperl
Active Member
- Joined
- Oct 23, 2007
- Messages
- 339
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
- Web
Hi all,
I am trying to update this query to allow me to Limit to a single month (i.e. August 2011) the tblActivityLog.ActivityDateTime contains a timestamp based on now() for each record.
any assistance you can provide would be apreciated.
I am trying to update this query to allow me to Limit to a single month (i.e. August 2011) the tblActivityLog.ActivityDateTime contains a timestamp based on now() for each record.
any assistance you can provide would be apreciated.
Code:
SELECT tblUsers.OTEID, tblActivityLog.ActivityDateTime,
tblActivityCodes.ActivityCatergory, tblActivityCodes.ActivityDescription,
Count(tblActivityLog.TrackerID) AS CountOfTrackerID
FROM ((tblActivityCodes INNER JOIN tblActivityLog
ON tblActivityCodes.ActivityCode = tblActivityLog.ActivityCode)
INNER JOIN tblSource ON tblActivityLog.SourceCode = tblSource.SourceCode)
INNER JOIN tblUsers ON tblActivityLog.OTEID = tblUsers.OTEID
GROUP BY tblUsers.OTEID, tblActivityLog.ActivityDateTime,
tblActivityCodes.ActivityCatergory,
tblActivityCodes.ActivityDescription;