T
Tara
I have a query that is used to evaluate data from a table with several
fields, 5 of which are used in this query. One field (Visits) shows how many
times staff met with a client. The other 4 fields (Stable, Prepared, Safe,
Responsive) represent how many times the client responded a certain way
during each visit. I need to set up an IIf statement that will evaluate
those fields and display a string based on the evaluations. So far I have it
set up to show "Client had no visits during this period" when there were no
visits. I also need to to evaluate each of the other 4 fields for
intentional blanks. For example, if both Prepared and Stable were not rated
during the visits, the field is left blank. In that case I need it to say
"Client was not rated in one or more areas during this period". Everytime I
try to set it up with Multiple IIf statements though, I get the following
error: "The expression you entered has a function containing the wrong
number of arguments". Here's the statement:
Note: IIf([Visits]=0,"Client had no visits during this period",
IIf([Prepared] Is Null Or IIf([Stable] Is Null Or IIf([Response] Is Null Or
IIf([Safe] Is Null, "The Client was not evaluated in one or more areas during
this period")))))
fields, 5 of which are used in this query. One field (Visits) shows how many
times staff met with a client. The other 4 fields (Stable, Prepared, Safe,
Responsive) represent how many times the client responded a certain way
during each visit. I need to set up an IIf statement that will evaluate
those fields and display a string based on the evaluations. So far I have it
set up to show "Client had no visits during this period" when there were no
visits. I also need to to evaluate each of the other 4 fields for
intentional blanks. For example, if both Prepared and Stable were not rated
during the visits, the field is left blank. In that case I need it to say
"Client was not rated in one or more areas during this period". Everytime I
try to set it up with Multiple IIf statements though, I get the following
error: "The expression you entered has a function containing the wrong
number of arguments". Here's the statement:
Note: IIf([Visits]=0,"Client had no visits during this period",
IIf([Prepared] Is Null Or IIf([Stable] Is Null Or IIf([Response] Is Null Or
IIf([Safe] Is Null, "The Client was not evaluated in one or more areas during
this period")))))