View Single Post
Old Jun 6th, 2007, 8:55 AM   #10
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 381
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
Apparently Access it's just weird . It doesn't support count(distinct .. etc).

You could do this : http://allenbrowne.com/ser-66.html.
Or, you could Have an inner select , and count that:

sql Syntax (Toggle Plain Text)
  1. SELECT count(*) FROM
  2. (SELECT DISTINCT [SV-5.NameA]
  3. FROM ([SV-5] LEFT JOIN SFtoFD ON [SV-5].NAMEA = SFtoFD.NAMEB) LEFT JOIN SFtoSV4 ON [SV-5].NAMEA = SFtoSV4.NAMEB
  4. WHERE SFtoSV4.NAMEB IS NULL AND SFtoFD.NAMEB IS NULL;) AS a
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote