M
MB
I'm using this expression in my query and it works great:
PressureScore:
IIf([Pressure]<=80,"0",IIf([Pressure]<=100,"2",IIf([Pressure]<=120,"4",IIf([Pressure]<=140,"6",IIf([Pressure]>=141,"8")))))
However, the following is not working:
PipeMaterialScore: IIf([Pipe Material]="cast iron","6",IIf([Pipe
Material]="Ductile","4",IIf([Pipe Mterial]="PVC" or "HDPE,"2","0"))
Should return scores as:
Cast Iron = 6
Ductile = 4
PVC = 2
HDPE = 2
Using Access 2007.
PressureScore:
IIf([Pressure]<=80,"0",IIf([Pressure]<=100,"2",IIf([Pressure]<=120,"4",IIf([Pressure]<=140,"6",IIf([Pressure]>=141,"8")))))
However, the following is not working:
PipeMaterialScore: IIf([Pipe Material]="cast iron","6",IIf([Pipe
Material]="Ductile","4",IIf([Pipe Mterial]="PVC" or "HDPE,"2","0"))
Should return scores as:
Cast Iron = 6
Ductile = 4
PVC = 2
HDPE = 2
Using Access 2007.