S
Steve B
I have modified Duane Hookom's brilliant AYS2000 questionnaire database by
linking the tables via ODBC to SQL Server 2000. Everything so far seems to be
running OK except for the x-tab query qxtbQstnTextRspnsxCount which returns
the error "ODBC--call failed.". When the appropriate tables are local
everything works. Duane's sql for the query is:
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 tblQuestions INNER JOIN tblResponses ON tblQuestions.QstnID =
tblResponses.QstnID
WHERE (((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
PIVOT "Number of Responses" In ("Number of Responses");
What is happening here? I've exhausted all my searching capabilities and
can't figure it out.
Thanks for any help
linking the tables via ODBC to SQL Server 2000. Everything so far seems to be
running OK except for the x-tab query qxtbQstnTextRspnsxCount which returns
the error "ODBC--call failed.". When the appropriate tables are local
everything works. Duane's sql for the query is:
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 tblQuestions INNER JOIN tblResponses ON tblQuestions.QstnID =
tblResponses.QstnID
WHERE (((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
PIVOT "Number of Responses" In ("Number of Responses");
What is happening here? I've exhausted all my searching capabilities and
can't figure it out.
Thanks for any help