A
Anne
Hi all. Thanks in advance for any help.
I have a form with a lsitbox displaying studies. In the
form header, I have an option group (opt_FilterBy) whose
intention is to allow the user to filter the display in
the listbox to show
1 - All studies,
2 - Studies by support person (chosen via
cbo_SupportPerson) and
3 - Unsupported studies.
The listbox is unbound, row source type table/query. I am
having trouble with the row source. I'm using this
(minus, of course, the stuff between <>s).
SELECT tbl_Studies.StudyID, tbl_Studies.StudyName,
tbl_Studies.Supported_By
FROM tbl_Studies
WHERE (((tbl_Studies.Supported_By)=IIf([Forms]!
[frm_MainStudy]![opt_FilterBy]=1,<Here's where I want to
select all studies>,IIf([Forms]![frm_MainStudy]!
[opt_FilterBy]=2,[Forms]![frm_MainStudy]!
[cbo_SupportPerson],<Here's where I'm looking for null
values>))))
ORDER BY tbl_Studies.StudyName;
Anyone? Any ideas?
I have a form with a lsitbox displaying studies. In the
form header, I have an option group (opt_FilterBy) whose
intention is to allow the user to filter the display in
the listbox to show
1 - All studies,
2 - Studies by support person (chosen via
cbo_SupportPerson) and
3 - Unsupported studies.
The listbox is unbound, row source type table/query. I am
having trouble with the row source. I'm using this
(minus, of course, the stuff between <>s).
SELECT tbl_Studies.StudyID, tbl_Studies.StudyName,
tbl_Studies.Supported_By
FROM tbl_Studies
WHERE (((tbl_Studies.Supported_By)=IIf([Forms]!
[frm_MainStudy]![opt_FilterBy]=1,<Here's where I want to
select all studies>,IIf([Forms]![frm_MainStudy]!
[opt_FilterBy]=2,[Forms]![frm_MainStudy]!
[cbo_SupportPerson],<Here's where I'm looking for null
values>))))
ORDER BY tbl_Studies.StudyName;
Anyone? Any ideas?