I'm putting together a database which has employee's Name and also a field called remarks.
In the Remarks field could be APPT/AM and I'm trying to use
the IIF statement to set the remarks to OUT if it matches.
This is the sql but when I run it nothing appears in the REMARKS field.
SELECT TestIf.Remarks
FROM TestIf
WHERE ((([TESTIF].[REMARKS])=IIf([TESTIF].[REMARKS]="APPT/AM",[TESTIF].[REMARKS]="AM",[TESTIF].[REMARKS]=[TESTIF].[REMARKS])));
Can any one tell me what I'm doing wrong or how to fix the
problem ?
Thanks
< I want to work in Theory - everything and everybody works in Theory !!>
In the Remarks field could be APPT/AM and I'm trying to use
the IIF statement to set the remarks to OUT if it matches.
This is the sql but when I run it nothing appears in the REMARKS field.
SELECT TestIf.Remarks
FROM TestIf
WHERE ((([TESTIF].[REMARKS])=IIf([TESTIF].[REMARKS]="APPT/AM",[TESTIF].[REMARKS]="AM",[TESTIF].[REMARKS]=[TESTIF].[REMARKS])));
Can any one tell me what I'm doing wrong or how to fix the
problem ?
Thanks
< I want to work in Theory - everything and everybody works in Theory !!>