B
Beth Eadie
I have a database that contains a table with all my user information. This
table contains information such as Name, Phone, Location, and the tests that
that user has taken. Each test (100, 200, 700, and 800) have their own
Yes/No fields if the user has taken it (e.g 100 Completed, 200 Completed,
etc) and then the date that they completed (100 Date Completed, 200 Date
Completed, etc). (This is probably bad database design, but design is not my
forte...)
I am wanting the user to be able to run a report by test (e.g show all users
that have taken a certain test). I have created the form with unbound combo
box with each test name. Now, here is my problem. I need to call the query
and have it filter the information for just that specific test. I am
assuming I need to write IIF statements for each test field, but I can't get
the coding correct. I have:
IIf([100SCa Completed?]=True And [Forms]![frmByTest]![cboByTest]="100.Sca",
<display the information>, <don't display the information>)
Is something like this even possible or would there be another way around
it? I know I can create 4 separate forms, queries, and reports for each of
the 4 tests, but I would like to make 1 form/report/query to do it all.
Any suggestions would be helpful.
Thanks,
Beth
table contains information such as Name, Phone, Location, and the tests that
that user has taken. Each test (100, 200, 700, and 800) have their own
Yes/No fields if the user has taken it (e.g 100 Completed, 200 Completed,
etc) and then the date that they completed (100 Date Completed, 200 Date
Completed, etc). (This is probably bad database design, but design is not my
forte...)
I am wanting the user to be able to run a report by test (e.g show all users
that have taken a certain test). I have created the form with unbound combo
box with each test name. Now, here is my problem. I need to call the query
and have it filter the information for just that specific test. I am
assuming I need to write IIF statements for each test field, but I can't get
the coding correct. I have:
IIf([100SCa Completed?]=True And [Forms]![frmByTest]![cboByTest]="100.Sca",
<display the information>, <don't display the information>)
Is something like this even possible or would there be another way around
it? I know I can create 4 separate forms, queries, and reports for each of
the 4 tests, but I would like to make 1 form/report/query to do it all.
Any suggestions would be helpful.
Thanks,
Beth