A
Amber
Hello-
I am trying to include a graph in an Access report. The graph report is
based off of a query. I built an unbound form named "ParamFormDept" with
three text boxes, StartDate/EndDate/cboDept that the user enters the date and
dept criteria into that they want the report for. When I run the query on
its own, the data comes up correctly. When I run the report with the graph
in it I get an error message saying "...does not recognize the name
[forms]![ParamFormDept]![cboDate] as a valid field name or expression."
My graphs row source says:
PARAMETERS forms!ParamFormDept!StartDate
DateTime,forms!ParamFormDept!EndDate DateTime; TRANSFORM Count(*) AS [Count]
SELECT Format([Date of Complaint],"MMM 'YY") FROM [qryGraphbyDept] WHERE
[Date Of Complaint] Between forms!ParamFormDept!StartDate and
forms!ParamFormDept!EndDate GROUP BY Year([Date of Complaint])*12 +
Month([Date of Complaint])-1,Format([Date of Complaint],"MMM 'YY") PIVOT
[Main Category Description]
I'm thinking my error must be related to something in the row source....my
question is what should the graph row source be?
Help is appreciated....thanks!
I am trying to include a graph in an Access report. The graph report is
based off of a query. I built an unbound form named "ParamFormDept" with
three text boxes, StartDate/EndDate/cboDept that the user enters the date and
dept criteria into that they want the report for. When I run the query on
its own, the data comes up correctly. When I run the report with the graph
in it I get an error message saying "...does not recognize the name
[forms]![ParamFormDept]![cboDate] as a valid field name or expression."
My graphs row source says:
PARAMETERS forms!ParamFormDept!StartDate
DateTime,forms!ParamFormDept!EndDate DateTime; TRANSFORM Count(*) AS [Count]
SELECT Format([Date of Complaint],"MMM 'YY") FROM [qryGraphbyDept] WHERE
[Date Of Complaint] Between forms!ParamFormDept!StartDate and
forms!ParamFormDept!EndDate GROUP BY Year([Date of Complaint])*12 +
Month([Date of Complaint])-1,Format([Date of Complaint],"MMM 'YY") PIVOT
[Main Category Description]
I'm thinking my error must be related to something in the row source....my
question is what should the graph row source be?
Help is appreciated....thanks!