The Rev
Registered User.
- Local time
- Today, 16:02
- Joined
- Jan 15, 2003
- Messages
- 119
I am trying to get a total deducted field in my query. Here is my SQL statement that doesn't work...
I am trying to evaluate 3 distinct conditions. Only one can be met. If the Requirement is satisfied, I want the Total deducted to be 0, if it is "Other than satisfied", I want the value from "Requirement_Score", and if only the "Special_Considerations_Satisfied" is met, I want the value from Requirement_Special_Considerations_Score.
Code:
TotalDeducted: IIF([Requirement_Satisfied]=True, "0", IIF(([Requirement_Other_Than_Satisfied]=True),[Requirement_Score], ([Requirement_Special_Considerations_Satisfied=True], [Requirement_Special_Considerations_Score]))
I am trying to evaluate 3 distinct conditions. Only one can be met. If the Requirement is satisfied, I want the Total deducted to be 0, if it is "Other than satisfied", I want the value from "Requirement_Score", and if only the "Special_Considerations_Satisfied" is met, I want the value from Requirement_Special_Considerations_Score.