Bennie47250
Programmer
Using Access 2003
Need to write an if then else statement that will exclude 2 different codes and I can seem to get the syntax correct.
This works correctly, but it is only excluding the one HECODE of 29.
Expr1: IIf([PRTEMP2]![TCODE]="ERN" And [PRTEMP2]![HECODE]<>29,[PRTEMP2]![SUMHEAMT],0)
What I would like to do is exclude 2 different HECODE codes 20 and 29.
What would be the correct syntax for this?
Thanks
Bennie
Need to write an if then else statement that will exclude 2 different codes and I can seem to get the syntax correct.
This works correctly, but it is only excluding the one HECODE of 29.
Expr1: IIf([PRTEMP2]![TCODE]="ERN" And [PRTEMP2]![HECODE]<>29,[PRTEMP2]![SUMHEAMT],0)
What I would like to do is exclude 2 different HECODE codes 20 and 29.
What would be the correct syntax for this?
Thanks
Bennie