This code works fine without the GROUP BY, as soon as i type it in and run the code access gives me an error msg: You tried to execute a query that does not include the specified expression 'date' as part of an aggregate function. But i need the group by to get rid of any duplicate email addresses. How can I tackle this?
Code:
SELECT emails.date, emails.email FROM emails WHERE emails.date<#11/1/2010# GROUP BY emails.email ORDER BY emails.date DESC;
Comment