C
cuyeda
I have a query that generates a list of species. Each species has an
"ActionType" associated with it. There can be 4 dif action types:
List(T)
List(E)
List(T/E)
n/a
I want to generate a parameter form to allow the user to filter the results.
In the parameter form I want a combo box which gives the user two options:
"List" or "CH".
If the user selects "CH" then the query should only display those records
where "n/a" appears (ie. the way I can filter the results by typing "n/a" in
the criteria field in design view). If the user selects "List" then I want
all the records where "n/a" does not appear (ie. the way I can filter results
by typing "Not Like 'n/a' " in design view).
I tried using the following but it didn't work:
iff([forms]![parameter form name]![name of control] = "CH", "n/a", Not Like
"n/a")
Thanks in advance for all your help.
"ActionType" associated with it. There can be 4 dif action types:
List(T)
List(E)
List(T/E)
n/a
I want to generate a parameter form to allow the user to filter the results.
In the parameter form I want a combo box which gives the user two options:
"List" or "CH".
If the user selects "CH" then the query should only display those records
where "n/a" appears (ie. the way I can filter the results by typing "n/a" in
the criteria field in design view). If the user selects "List" then I want
all the records where "n/a" does not appear (ie. the way I can filter results
by typing "Not Like 'n/a' " in design view).
I tried using the following but it didn't work:
iff([forms]![parameter form name]![name of control] = "CH", "n/a", Not Like
"n/a")
Thanks in advance for all your help.