J
JH
I have the following set up as an expression in a query.
ETConvert is a Time (Date/Time field).
NewShift: IIf([ETConvert]<=#6:59:59 AM# And [Shift]
="B","A") Or IIf([ETConvert]<=#6:59:59 AM# And [Shift]
="C","B") Or IIf([ETConvert]<=#6:59:59 AM# And [Shift]
="A","B")
If I use the expression upto the first OR by itself, it
works fine. However, adding the rest produces a -1 in the
result. That shows me that something is occuring, but I
need the appropriate letter instead.
I tried replacing the OR's with a ',' but that doesn't
work either. What do I have wrong?
ETConvert is a Time (Date/Time field).
NewShift: IIf([ETConvert]<=#6:59:59 AM# And [Shift]
="B","A") Or IIf([ETConvert]<=#6:59:59 AM# And [Shift]
="C","B") Or IIf([ETConvert]<=#6:59:59 AM# And [Shift]
="A","B")
If I use the expression upto the first OR by itself, it
works fine. However, adding the rest produces a -1 in the
result. That shows me that something is occuring, but I
need the appropriate letter instead.
I tried replacing the OR's with a ',' but that doesn't
work either. What do I have wrong?