I created a cross tab query that is based upon another query.
Crosstab Query
It works perfectly until I add this:
To the query the crosstab is based on
Now I get an error when opening up the cross tab query: The Microsoft Office Access database engine does not recognize 'Forms!Frm_ReportImput!PickYear' as a valid field name or expression.
When I open up the query the crosstab query is based on. I get no problems. I am so confused... Can someone help me?
Crosstab Query
Code:
TRANSFORM First(Query_Reports_Range.[Vent]) AS FirstOfVent
SELECT Query_Reports_Range.[MedID]
FROM Query_Reports_Range
GROUP BY Query_Reports_Range.[MedID]
PIVOT Format([Daily_Rounds_Date],"Short Date");
Code:
WHERE (((Year(Patient_Rounds!Daily_Rounds_Date)) Like Forms!Frm_ReportInput!PickYear) And ((Month(Patient_Rounds!Daily_Rounds_Date)) Like Forms!Frm_ReportInput!PickMonth));
Code:
SELECT Patient_Rounds.MedID, Patient_Rounds.Daily_Rounds_Date, IIf([Patient_Rounds]![Vent]=True,[Patient_Rounds]![VentSetting_Number] & " " & [Patient_Rounds]![VentSetting_Type],"/") AS Vent
FROM Patient_Rounds
When I open up the query the crosstab query is based on. I get no problems. I am so confused... Can someone help me?