R
red6000
Hi I have a form with a combo box.
I would like the source to be 1 of 2 queries, but I can't work out how to do
it. I had put in the 'Rowsource' property field the code below, but it
doesn't work.
Any help appreciated (I'm guess something like merging my 2 queries???)
=If(Forms!QuestionData!QuestionArea = "WFI Queue", [QuestionAreaWFI],
[QuestionsAreaNonWFI])
The SQL for the 2 queries are below:
SELECT Questions.Category
FROM Questions
GROUP BY Questions.Category
HAVING (((Questions.Category) Not Like "*Authorise"));
==================
SELECT Questions.Category
FROM Questions
GROUP BY Questions.Category
HAVING (((Questions.Category) Like "*Authorise"));
Thanks.
I would like the source to be 1 of 2 queries, but I can't work out how to do
it. I had put in the 'Rowsource' property field the code below, but it
doesn't work.
Any help appreciated (I'm guess something like merging my 2 queries???)
=If(Forms!QuestionData!QuestionArea = "WFI Queue", [QuestionAreaWFI],
[QuestionsAreaNonWFI])
The SQL for the 2 queries are below:
SELECT Questions.Category
FROM Questions
GROUP BY Questions.Category
HAVING (((Questions.Category) Not Like "*Authorise"));
==================
SELECT Questions.Category
FROM Questions
GROUP BY Questions.Category
HAVING (((Questions.Category) Like "*Authorise"));
Thanks.