Hello,
I need to use a Vba expresion in a query calc field.
Presently I use the expression below to determine the shift
grouping in a query for my report but I now have 3 shifts.
Shift: IIf([Team Number]>199,"2","1"
I need to use a Vba expression -If Then Else -
so that If [Team Number] < 199 Shift =1
and If [Team Number] is > 199 Shift = 2 and if [Team Number] is > 299 Shift = 3
I can't find a clear example in the help can you help.
Thanks,
Dyer
I need to use a Vba expresion in a query calc field.
Presently I use the expression below to determine the shift
grouping in a query for my report but I now have 3 shifts.
Shift: IIf([Team Number]>199,"2","1"
I need to use a Vba expression -If Then Else -
so that If [Team Number] < 199 Shift =1
and If [Team Number] is > 199 Shift = 2 and if [Team Number] is > 299 Shift = 3
I can't find a clear example in the help can you help.
Thanks,
Dyer