I currently have an iif statement that creates a value in a new field name based on a value in an existing field name.
Example:
SELECT [EMRB MASTER].LMPID, [EMRB MASTER].[Last Name], IIf([EMRB MASTER].[SPMES Promotion]=-1,"SPMES") AS CURRJOB
FROM [EMRB MASTER];
if the SPMES Promotion field has been checked, I set the value of a new field called CURRJOB to "SPMES".
What I want to do is, based on this iif statement, ALSO set the value of a second new field called PROMODATE to the value in an existing field called "SPMES Promo".
Can I set values in multiple fields this way? This is actually just 1 iif statment of a multiple iff (6 iif's) and on each iif i need to assign the multiple values.
As always, help is much apprecciated.
Thanks.
Tom
Example:
SELECT [EMRB MASTER].LMPID, [EMRB MASTER].[Last Name], IIf([EMRB MASTER].[SPMES Promotion]=-1,"SPMES") AS CURRJOB
FROM [EMRB MASTER];
if the SPMES Promotion field has been checked, I set the value of a new field called CURRJOB to "SPMES".
What I want to do is, based on this iif statement, ALSO set the value of a second new field called PROMODATE to the value in an existing field called "SPMES Promo".
Can I set values in multiple fields this way? This is actually just 1 iif statment of a multiple iff (6 iif's) and on each iif i need to assign the multiple values.
As always, help is much apprecciated.
Thanks.
Tom
Last edited: