Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COUNT(DISTINCT X) being rejected by Access 97 2

Status
Not open for further replies.

KMITCH

MIS
May 1, 2000
42
US
The following contrived SQL is being rejected by <br>Access 97.&nbsp;&nbsp;I just tested in Foxpro and works fine<br>there.&nbsp;&nbsp;I've played with several configurations<br>of COUNT DISTINCT in Access to no avail.<br><br>The work-around is going to be very unpleasant<br>if I cannot do this in one SQL in Access 97.<br><br>SELECT Invoices.InvoiceDate, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COUNT(DISTINCT Invoices.CustID) AS DistCustID<br>FROM Invoices<br>GROUP BY Invoices.InvoiceDate<br><br>Any help is much appreciated.<br><br>Thanks,<br>KMITCH
 
We can not use &quot;distinct&quot; and &quot;group by&quot; together in Access97.
 
Thanks seaport,<br><br>While this is disheartening news, I do appreciate the post.<br><br>KMITCH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top