G
gillah11
My first iif statement reads as follows:
Volume: IIf([Ticket_created_date]>#4/13/2009# And [State_cd] In
("IL","AL","MI","OR","MS","KY") Or [Ticket_created_date]>#5/7/2009# And
[State_cd] In ("TX","MO","WI") Or [Ticket_created_date]>#6/4/2009# And
[State_cd] In ("AZ","IN","MN","OK","PA","UT") Or
[Ticket_created_date]>#6/25/2009# And [State_cd]="CO",[policy_id ])
and works well. Now I want to build a field called "Usage" with the same
criteria as above and additional criteria as follows:
[Discount_Flag ]=1 Or [PreCredit_Retiering_Flag ]=1 Or
[Credit_Retiering_Flag ]=1.
I've added the additonal criteria six different ways to Sunday, and the
result I get each time includes items in the States that I've already
filtered out.
Ticket_Created_Date Volume Usage State_Cd
7/7/2009 2312638 FL
7/7/2009 3067181 SC
7/7/2009 3033630 3033630 IN
7/7/2009 3121385 3121385 TX
7/7/2009 3154413 3154413 CO
7/7/2009 3225028 3225028 MN
7/7/2009 3241041 3241041 MN
7/7/2009 3364325 3364325 AZ
Volume: IIf([Ticket_created_date]>#4/13/2009# And [State_cd] In
("IL","AL","MI","OR","MS","KY") Or [Ticket_created_date]>#5/7/2009# And
[State_cd] In ("TX","MO","WI") Or [Ticket_created_date]>#6/4/2009# And
[State_cd] In ("AZ","IN","MN","OK","PA","UT") Or
[Ticket_created_date]>#6/25/2009# And [State_cd]="CO",[policy_id ])
and works well. Now I want to build a field called "Usage" with the same
criteria as above and additional criteria as follows:
[Discount_Flag ]=1 Or [PreCredit_Retiering_Flag ]=1 Or
[Credit_Retiering_Flag ]=1.
I've added the additonal criteria six different ways to Sunday, and the
result I get each time includes items in the States that I've already
filtered out.
Ticket_Created_Date Volume Usage State_Cd
7/7/2009 2312638 FL
7/7/2009 3067181 SC
7/7/2009 3033630 3033630 IN
7/7/2009 3121385 3121385 TX
7/7/2009 3154413 3154413 CO
7/7/2009 3225028 3225028 MN
7/7/2009 3241041 3241041 MN
7/7/2009 3364325 3364325 AZ