I was going to suggest a SQL expression, but you wouldn't be able to build in the parameter, and I'm not quite sure how to build those date criteria into a command object (see below), so the other opton would be the faux group route, but then you'd have to use variables to suppress various headers and also to collect the summary information. What would be best?
If you think you can figure out how to incorporate the date parameters into a command, that would be simpler. Then you could use a command like:
select count(PCP_ID), Prov_Visit.PROV_ID
from Pat_Visit, Prov_visit
where Pat_Visit.PCP_ID = Pat_Visit.Visit_ID and
Pat_visit.linkingfield = Prov_visit.linkingfield and
{PAT_VISIT.visit_date} >= {?StartDate} and
{PAT_VISIT.visit_date} < {?End Date} + 1
Group by Prov_Visit.PROV_ID
Then you could link this to the Prov_ID field and group on the count expression.
-LB