andy_dyer
Registered User.
- Local time
- Today, 11:24
- Joined
- Jul 2, 2003
- Messages
- 806
That's what the previous two pages of posts have been trying to achieve...
My query is this:
SELECT [tblMental Health].Referrer AS Expr1, Count(tblInput.[Centre Code]) AS [Number of Referrals], tblInput.Referrer
FROM [tblMental Health] RIGHT JOIN tblInput ON [tblMental Health].[Mental Health] = tblInput.Referrer
WHERE (((tblInput.[Referral 1 Received Date]) Between [Forms]![frmReportDates]![txtStartDate] And [Forms]![frmReportDates]![txtEndDate]))
GROUP BY [tblMental Health].Referrer, tblInput.Referrer
HAVING (((tblInput.Referrer)=[Forms]![frmInput]!cboReferrer.Column(1)));
But it doesn't like the syntax where I am trying to access the correct column of the combo box...
My query is this:
SELECT [tblMental Health].Referrer AS Expr1, Count(tblInput.[Centre Code]) AS [Number of Referrals], tblInput.Referrer
FROM [tblMental Health] RIGHT JOIN tblInput ON [tblMental Health].[Mental Health] = tblInput.Referrer
WHERE (((tblInput.[Referral 1 Received Date]) Between [Forms]![frmReportDates]![txtStartDate] And [Forms]![frmReportDates]![txtEndDate]))
GROUP BY [tblMental Health].Referrer, tblInput.Referrer
HAVING (((tblInput.Referrer)=[Forms]![frmInput]!cboReferrer.Column(1)));
But it doesn't like the syntax where I am trying to access the correct column of the combo box...