Xx_TownDawg_xX
Registered User.
- Local time
- Yesterday, 19:31
- Joined
- Jan 16, 2009
- Messages
- 78
This is really "ugly code" but it works.
The problem is surely there is a better way to code what I want without it being so ugly. Essentially.. If the auditor works in the same department it is a "QC" audit, but if he/she is auditing another department it is a "QA" audit. However, we wanted the ability to "override" the logic to allow for "FC", "FG" and "RI" audits as well, but we also wanted the ability to show an "Int" audit if the auditor clock number is "0000".
HAS to be an easier way to code this.
Code:
AuditorType: IIf([tblDataEntry]![AuditorClock]="0000",[tblAuditors]![AuditorType],IIf([tblDataEntry]![OverRide]<>1,[tblOverRide]![SwapID],IIf([tblAuditors]![AuditorDept]<>[tblSeries]![Department_ID],"QA",[tblAuditors]![AuditorType])))
HAS to be an easier way to code this.