Code: Select all
SQL = "SELECT PRE.TIT, PRE.N, PRE.CF, PRE.S, PRE.A, Count(PRE.CA) AS ConteggioDiCA" & _
" From PRE" & _
" WHERE Not (PRE.S) Is Null AND PRE.A>=#" & Format(minDate, "MM/DD/YYYY") & "# AND PRE.ID IN('CM','CN')"
But really to count i need to group y or not?