G
Guest
i am trying to creat crosstab query , for selected period entered thru a
form.this is the sql for it.
TRANSFORM Sum(PATIENTS.[NO OF PATIENTS]) AS [SumOfNO OF PATIENTS]
SELECT PATIENTS.DIAG
FROM PATIENTS
WHERE (((PATIENTS.travel) Between [Forms]![my date range99]![from] And
[Forms]![my date range99]![to]))
GROUP BY PATIENTS.DIAG
PIVOT PATIENTS.COUNTRY;
but i am not able to get it work as i get the following mesage:
the microsoft jet database engine does not recognise "[forms]![my date
range99]![from] as a valid field name or expression"
(the form is to enter the "Travel" dates( from , to.)and one button to open
the query., the Travel column in the qry is set to Where and the criteria is
Between [Forms]![my date range99]![from] And [Forms]![my date range99]![to]
please help with this problem
thank you
form.this is the sql for it.
TRANSFORM Sum(PATIENTS.[NO OF PATIENTS]) AS [SumOfNO OF PATIENTS]
SELECT PATIENTS.DIAG
FROM PATIENTS
WHERE (((PATIENTS.travel) Between [Forms]![my date range99]![from] And
[Forms]![my date range99]![to]))
GROUP BY PATIENTS.DIAG
PIVOT PATIENTS.COUNTRY;
but i am not able to get it work as i get the following mesage:
the microsoft jet database engine does not recognise "[forms]![my date
range99]![from] as a valid field name or expression"
(the form is to enter the "Travel" dates( from , to.)and one button to open
the query., the Travel column in the qry is set to Where and the criteria is
Between [Forms]![my date range99]![from] And [Forms]![my date range99]![to]
please help with this problem
thank you