I have a database that is used to manage trouble tickets. I am trying to build a report that shows all "open" tickets also showing only the latest journal entry for the ticket. There are numerous journal entries per ticket number, but the most recent is all I want on my report. I have tried building a query using the MAX function to select the most recent date but upon exectuting the query I get errors. For example "you tried to execute a query that does not contain the specified expression 'callID'as part of an aggregate function." Below is the SQL statement from my query.
SELECT dbo_Journal.CallID, dbo_Journal.EntryDate, dbo_Journal.EntryTime, dbo_Journal.EntryText, Max([dtlastmod]) AS expr1
FROM dbo_Journal;
I am sure it's something very obvious that I am missing, but I've been playing around with this for a few days to no avail. Any input would be greatly appreciated! Thanks! in advance. [sig][/sig]
SELECT dbo_Journal.CallID, dbo_Journal.EntryDate, dbo_Journal.EntryTime, dbo_Journal.EntryText, Max([dtlastmod]) AS expr1
FROM dbo_Journal;
I am sure it's something very obvious that I am missing, but I've been playing around with this for a few days to no avail. Any input would be greatly appreciated! Thanks! in advance. [sig][/sig]