houstonbill
Technical User
- Nov 6, 2006
- 92
I know that there is probably a simple explanation and I am doing something very stupid, but I can't see it. My IIF statement reads as indicated in the SQL below and it will not change the only entry possible in the Elect field (TWO) to YES. What am I doing wrong.
SELECT [ElectronicWS CSR Rpt Quality].FEX, [ElectronicWS CSR Rpt Quality].FDT, [ElectronicWS CSR Rpt Quality].CCN, [ElectronicWS CSR Rpt Quality].SUBNOFUL, [ElectronicWS CSR Rpt Quality].GROUPNO, [ElectronicWS CSR Rpt Quality].ICN, [ElectronicWS CSR Rpt Quality].ExamID, IIf([Elec]="TWO","YES","NO") AS Elect, [ElectronicWS CSR Rpt Quality].Name
FROM [ElectronicWS CSR Rpt Quality]
WHERE ((([ElectronicWS CSR Rpt Quality].FDT) Between [Begin Date] And [End Date]));
SELECT [ElectronicWS CSR Rpt Quality].FEX, [ElectronicWS CSR Rpt Quality].FDT, [ElectronicWS CSR Rpt Quality].CCN, [ElectronicWS CSR Rpt Quality].SUBNOFUL, [ElectronicWS CSR Rpt Quality].GROUPNO, [ElectronicWS CSR Rpt Quality].ICN, [ElectronicWS CSR Rpt Quality].ExamID, IIf([Elec]="TWO","YES","NO") AS Elect, [ElectronicWS CSR Rpt Quality].Name
FROM [ElectronicWS CSR Rpt Quality]
WHERE ((([ElectronicWS CSR Rpt Quality].FDT) Between [Begin Date] And [End Date]));