P
PayeDoc
Hello All
Why isn't this working:
SELECT [x confirmed].practice, [x confirmed].[ni code], Count([x
confirmed].[ni code]) AS [CountOfni code]
FROM months INNER JOIN [x confirmed] ON months.[month name] = [x
confirmed].[month name]
WHERE (((months.year)=[Forms]![frm x main]![year]))
GROUP BY [x confirmed].practice, [x confirmed].[ni code]
HAVING (((Count([x confirmed].[ni code]))>1));
I want it to give a count of the unique values of 'ni code' for each value
of 'practice' in table [x confirmed] - but only where there is more than 1
different 'ni code' for a particular 'practice'.
My attempt above isn't grouping on each 'ni code' (even though I have 'ni
code' in the 'group by' part).
Hope someone can help.
Many thanks
Leslie Isaacs
Why isn't this working:
SELECT [x confirmed].practice, [x confirmed].[ni code], Count([x
confirmed].[ni code]) AS [CountOfni code]
FROM months INNER JOIN [x confirmed] ON months.[month name] = [x
confirmed].[month name]
WHERE (((months.year)=[Forms]![frm x main]![year]))
GROUP BY [x confirmed].practice, [x confirmed].[ni code]
HAVING (((Count([x confirmed].[ni code]))>1));
I want it to give a count of the unique values of 'ni code' for each value
of 'practice' in table [x confirmed] - but only where there is more than 1
different 'ni code' for a particular 'practice'.
My attempt above isn't grouping on each 'ni code' (even though I have 'ni
code' in the 'group by' part).
Hope someone can help.
Many thanks
Leslie Isaacs