E
Elizabeth
I have a form with an unbound control in which I want to
display information depending on a value in the
underlying table. I can't get the expression to do what I
want.
In English:
If PriorDisposition is "Rejected", say "It was rejected".
If PriorDisposition is "Incident", say "It was an
incident". If PriorDispostion = "Assigned", don't say
anything at all.
I've tried the following and it works, but it doesn't
handle the "Assigned" argument.
=IIf([PriorDisposition]="Rejected" Or "Incident" And
Not "Assigned","It was rejected ","It was an Incident")
I tried...
=IIf Not([PriorDisposition]="Assigned" And
[PriorDisposition] = "Rejected" Or "Incident" And
Not "Assigned","It was rejected ","It was an Incident")
....and it "definately" does not like that!
How should this code be modified? Alternatively, would it
be better to code this when the form opens? If so, where?
I know how to write If..Else..Otherwise and Select Case
statements, but no matter where I put the code, like in
the form's On Open event, it doesn't work.
Many thanks to helpful folks,
Elizabeth
display information depending on a value in the
underlying table. I can't get the expression to do what I
want.
In English:
If PriorDisposition is "Rejected", say "It was rejected".
If PriorDisposition is "Incident", say "It was an
incident". If PriorDispostion = "Assigned", don't say
anything at all.
I've tried the following and it works, but it doesn't
handle the "Assigned" argument.
=IIf([PriorDisposition]="Rejected" Or "Incident" And
Not "Assigned","It was rejected ","It was an Incident")
I tried...
=IIf Not([PriorDisposition]="Assigned" And
[PriorDisposition] = "Rejected" Or "Incident" And
Not "Assigned","It was rejected ","It was an Incident")
....and it "definately" does not like that!
How should this code be modified? Alternatively, would it
be better to code this when the form opens? If so, where?
I know how to write If..Else..Otherwise and Select Case
statements, but no matter where I put the code, like in
the form's On Open event, it doesn't work.
Many thanks to helpful folks,
Elizabeth