G
Guest
Duane Hookom, the database I designed comes from your Survey database, it is
great. I have added a few things, here is the sql from the crosstab query.
PARAMETERS Forms!fmnuReportSelect!cboSrvID Long;
TRANSFORM Count(tblResponses.Rspns) AS CountOfRspns
SELECT tblQuestions.QstnID, tblQuestions.QstnLvl1, tblQuestions.QstnLvl2,
tblQuestions.QstnLvl3, tblQuestions.QstnText, tblResponses.Rspns,
tblQuestions.SrvID
FROM tblSrvRspns INNER JOIN (tblQuestions INNER JOIN tblResponses ON
tblQuestions.QstnID = tblResponses.QstnID) ON tblSrvRspns.RspnsID =
tblResponses.RspnsID
WHERE
(((tblSrvRspns.numFiscalYear)=[Forms]![fmnuReportSelect]![lstFiscalYear]) AND
((tblSrvRspns.numFiscalQuarter)=[Forms]![fmnuReportSelect]![lstFiscalQuarter])
AND ((tblQuestions.SrvID)=[Forms]![fmnuReportSelect]![cboSrvID]) AND
((tblQuestions.QstnType)="Stat" Or (tblQuestions.QstnType)="Demo"))
GROUP BY tblQuestions.QstnID, tblQuestions.QstnLvl1, tblQuestions.QstnLvl2,
tblQuestions.QstnLvl3, tblQuestions.QstnText, tblResponses.Rspns,
tblQuestions.SrvID, tblSrvRspns.numFiscalYear, tblSrvRspns.numFiscalQuarter
PIVOT "Number of Responses" In ("Number of Responses");
The field values are questions I ask in the survey, for example "What are
your goals?"
Duane wrote:
The layout preview doesn't rely on actual records and data. Use it only to
get the layout right. Ignore the data.
Could you share the sql view of your crosstab? What are some sample
record/field values that result in the squares?
great. I have added a few things, here is the sql from the crosstab query.
PARAMETERS Forms!fmnuReportSelect!cboSrvID Long;
TRANSFORM Count(tblResponses.Rspns) AS CountOfRspns
SELECT tblQuestions.QstnID, tblQuestions.QstnLvl1, tblQuestions.QstnLvl2,
tblQuestions.QstnLvl3, tblQuestions.QstnText, tblResponses.Rspns,
tblQuestions.SrvID
FROM tblSrvRspns INNER JOIN (tblQuestions INNER JOIN tblResponses ON
tblQuestions.QstnID = tblResponses.QstnID) ON tblSrvRspns.RspnsID =
tblResponses.RspnsID
WHERE
(((tblSrvRspns.numFiscalYear)=[Forms]![fmnuReportSelect]![lstFiscalYear]) AND
((tblSrvRspns.numFiscalQuarter)=[Forms]![fmnuReportSelect]![lstFiscalQuarter])
AND ((tblQuestions.SrvID)=[Forms]![fmnuReportSelect]![cboSrvID]) AND
((tblQuestions.QstnType)="Stat" Or (tblQuestions.QstnType)="Demo"))
GROUP BY tblQuestions.QstnID, tblQuestions.QstnLvl1, tblQuestions.QstnLvl2,
tblQuestions.QstnLvl3, tblQuestions.QstnText, tblResponses.Rspns,
tblQuestions.SrvID, tblSrvRspns.numFiscalYear, tblSrvRspns.numFiscalQuarter
PIVOT "Number of Responses" In ("Number of Responses");
The field values are questions I ask in the survey, for example "What are
your goals?"
Duane wrote:
The layout preview doesn't rely on actual records and data. Use it only to
get the layout right. Ignore the data.
Could you share the sql view of your crosstab? What are some sample
record/field values that result in the squares?