I have been hacking at this for a few days. This is what I'm working with.
Me![varx] = DLookup("[field_name]", "tblsurveyfields", "[Description] = '" & Me!
[ListAppealQuestions] & "'")
GphCRV.RowSource = " PARAMETERS [forms]![frmAppealSummary]!
[ListModelYear] Value, [forms]![frmAppealSummary]!
[ListAppealQuestions] Value, [forms]![frmAppealSummary]![varx] Value; " _
& " TRANSFORM count(Summary.ID) AS CountOfID " _
& " SELECT tblResponse.Result " _
& " FROM Summary INNER JOIN tblResponse ON Summary." & [Forms]![frmAppealSummary]!varx & " = tblResponse.Result " _
& " WHERE ((([Forms]![frmAppealSummary]!
[ListAppealQuestions]) Is Not Null) And ((Summary.MFRMODEL) = 'crv' ) And ((Summary.MFRMDLYR) = [Forms]![frmAppealSummary]!
[ListModelYear]))" _
& " GROUP BY tblResponse.Result " _
& " PIVOT Summary.MFRMODEL; "
GphCRV.Requery
I'm trying to use this same query to average the columns.
Thanks