Re: SELECT COUNT(Distinct surname)
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
On Tue, 31 Jan 2006 23:58:40 -0000, "laura" <replyto@xxxxxxxxx> wrote:
>"SELECT COUNT (DISTINCT surname) FROM tblClients" might do the trick, but I
>keep getting a syntax error message saying that there is a missing operator.
Unfortunately the JET query engine does not support the ANSI standard
SELECT COUNT(DISTINCT...) operator.
You'll need to use a subquery:
SELECT Count(*) FROM
(SELECT DISTINCT Surname FROM tblClients);
John W. Vinson[MVP]
.