E
Eldon
I am using a 2003-structure db file, necessary due to the need to keep
user-level security on the db, and a query that uses distinct that worked
fine when under 2003, is now no longer returning distinct records under
Access2007.
Here is the query:
SELECT DISTINCT GACLOSE.[Oversight Person2] AS SStaff, GACLOSE.[Oversight2
Email Address] AS SAddr, GACLOSE.DateDue
FROM GACLOSE
WHERE (((GACLOSE.DateDue)<Date()) AND ((GACLOSE.[Displayed completed date])
Is Null) AND ((GACLOSE.OverdueEmailSent)=No))
ORDER BY GACLOSE.[Oversight Person2];
This query is used to produce a report, and the report now has Oversight
Person2 repeated many times, where it did not in Access2003. It is also used
to feed a Module that sends out emails, and instead of producing the five
emails to five individuals, it want to send 20+, over and over to the same
people, with the same report attached.
Any suggestions on how/why 2007 acts differently from 2003 in this case,
and what the fix is, would be appreciated.
user-level security on the db, and a query that uses distinct that worked
fine when under 2003, is now no longer returning distinct records under
Access2007.
Here is the query:
SELECT DISTINCT GACLOSE.[Oversight Person2] AS SStaff, GACLOSE.[Oversight2
Email Address] AS SAddr, GACLOSE.DateDue
FROM GACLOSE
WHERE (((GACLOSE.DateDue)<Date()) AND ((GACLOSE.[Displayed completed date])
Is Null) AND ((GACLOSE.OverdueEmailSent)=No))
ORDER BY GACLOSE.[Oversight Person2];
This query is used to produce a report, and the report now has Oversight
Person2 repeated many times, where it did not in Access2003. It is also used
to feed a Module that sends out emails, and instead of producing the five
emails to five individuals, it want to send 20+, over and over to the same
people, with the same report attached.
Any suggestions on how/why 2007 acts differently from 2003 in this case,
and what the fix is, would be appreciated.