Article ID: 306250 - Last Review: October 20, 2003 - Revision: 3.0 ACC2002: Setting ANSI 92 Compatibility in a Database Does Not Allow DISTINCT Keyword in Aggregate FunctionsThis article was previously published under Q306250 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb). On This PageSYMPTOMS
The "About ANSI SQL query mode" topic in the Microsoft Access Help system has a hyperlinked subtopic named "Why use ANSI-92 SQL?" This subtopic states the following:
You may want to use ANSI-92 SQL for the following reasons:
Syntax error (missing operator) in query expression 'sum(distinct field1)'
RESOLUTION
Change the query as follows:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCESFor more information about the Help topic discussed in this article, click Microsoft Access Help on the
Help menu, type about ansi sql query mode in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
| Article Translations
|
Back to the top
