crosstab query problem

dbertanjoli

Registered User.
Local time
Today, 20:11
Joined
Sep 22, 2000
Messages
102
Hello,
I created a crosstab query and I would like to add this criteria to it: [Forms]![Main]![ID] but I am getting Microsoft Jet Database message that this is invalid criteria. IIt works when I test it in regular query. Can please someone tell me what I am doing wrong and is there any way around this problem?

many thanks
 
Here it is:

TRANSFORM Max(CStr(Trim([Answer]))) AS FullAnswer
SELECT owsResponseAnswer.ResponseID
FROM owsResponseAnswer INNER JOIN owsQuestion ON owsResponseAnswer.QuestionID = owsQuestion.QuestionID
WHERE (((owsResponseAnswer.ResponseID)=[Forms]![Main]![ID]))
GROUP BY owsResponseAnswer.ResponseID
PIVOT owsQuestion.Description;

Many thanks,
Deb
 
But how to associate that paramenter to choosen ID. I want ResponseID to have this parametar: [Forms]![Main]![ID]
 
It is working when I entere criteria under responseid and parameteters.

Many thanks,
Deb
 

Users who are viewing this thread

Back
Top Bottom