Hi
I am using Access 2003.
I have an unbound report that has 10 graphs on it. Each graph has an SQL statement as its row source. I have a report dialog that is queried for the start date for the report and also the Nursing Unit.
This method works great for "normal" graphs but I'm now trying to add a graph that is using a transform query as its row source:
I don't know if it's correct but the order by section is so the months will sort in fiscal month order (Apr to Mar).
Anyway, when I try to add the criteria of "Unit = forms!frmGraphDialog!lstInst3" I get an error message indicating "The Microsoft Jet database engine does not recognize forms!frmGraphDialog!lstInst3 as a valid field name or expression".
Checking TekTips I see that querying in this fashion isn't allowed by transform queries...so how can I have user input for this report if not by form? Thanks.
I am using Access 2003.
I have an unbound report that has 10 graphs on it. Each graph has an SQL statement as its row source. I have a report dialog that is queried for the start date for the report and also the Nursing Unit.
This method works great for "normal" graphs but I'm now trying to add a graph that is using a transform query as its row source:
Code:
TRANSFORM Avg(FLO_Data.TotalDays) AS ALOS
SELECT Format([DisDate],"mmm") AS Dmonth
FROM FLO_Data
WHERE (((FLO_Data.Disp) Like "2*"))
GROUP BY Format([DisDate],"mmm"), IIf(Month([DisDate])=1,10,IIf(Month([DisDate])=2,11,IIf(Month([DisDate])=3,
12,IIf(Month([DisDate])=4,1,IIf(Month([DisDate])=5,2,IIf(Month([DisDate])=6
,3,IIf(Month([DisDate])=7,4,IIf(Month([DisDate])=8,5,IIf(Month([DisDate])=9
,6,IIf(Month([DisDate])=10,7,IIf(Month([DisDate])=11,8,IIf(Month([DisDate])
=12,9))))))))))))
ORDER BY IIf(Month([DisDate])=1,10,IIf(Month([DisDate])=2,11,IIf(Month([DisDate])=3,
12,IIf(Month([DisDate])=4,1,IIf(Month([DisDate])=5,2,IIf(Month([DisDate])=6
,3,IIf(Month([DisDate])=7,4,IIf(Month([DisDate])=8,5,IIf(Month([DisDate])=9
,6,IIf(Month([DisDate])=10,7,IIf(Month([DisDate])=11,8,IIf(Month([DisDate])
=12,9))))))))))))
PIVOT FLO_Data.Fyear;
I don't know if it's correct but the order by section is so the months will sort in fiscal month order (Apr to Mar).
Anyway, when I try to add the criteria of "Unit = forms!frmGraphDialog!lstInst3" I get an error message indicating "The Microsoft Jet database engine does not recognize forms!frmGraphDialog!lstInst3 as a valid field name or expression".
Checking TekTips I see that querying in this fashion isn't allowed by transform queries...so how can I have user input for this report if not by form? Thanks.