S
Scott
I have an If, Else, Then Statment in a report I am
writing. Depending on if I use ( ) or not I get either a
syntax error, an extra ( error, or a missing operator
error. I have tried many variations of this statement and
cannot get a valid response. Can you point me in the right
direction? Thanks.
The statement is
If
([Base1]-[Base0])<=[BaseLine1] then 0
ElseIf
([Base1]-[Base0])<=[BaseLine2] Then ([Base1]-[Base0])-
[BaseLine1]
Else [BaseLine2]-[BaseLine1]
End If
([Base1]-[Base0]) is a field calculated from a query.
BaseLine 1 is the numerical value 250
BaseLine2 is the numerical value 500
writing. Depending on if I use ( ) or not I get either a
syntax error, an extra ( error, or a missing operator
error. I have tried many variations of this statement and
cannot get a valid response. Can you point me in the right
direction? Thanks.
The statement is
If
([Base1]-[Base0])<=[BaseLine1] then 0
ElseIf
([Base1]-[Base0])<=[BaseLine2] Then ([Base1]-[Base0])-
[BaseLine1]
Else [BaseLine2]-[BaseLine1]
End If
([Base1]-[Base0]) is a field calculated from a query.
BaseLine 1 is the numerical value 250
BaseLine2 is the numerical value 500