
Originally Posted by
Schon731
I want to add a field [Patient Code] and count how many patients are in each [PT-Patient Group].
That can work simply by adding this to the sql:
Code:
select count([pt-patient group])

Originally Posted by
Schon731
I have 1 patient in group CC that has 4 RX's. The RX Number count works and is 4 but in the Patient field I want it to be 1 to indicate there is only 1 patient in that group.
that doesn't make much sense. Could you re-tell the story please?
Also, if your groupings need to change often, run the query from a form with inputs to be indicated by a user. more than likely, if this is the case, creating and/or replacing the same query via VBA code will be much easier for you than parameter prompts.