C
CFJOHN1
I’m attempting to flag interest rate spread errors and omissions in a file
from a sales database using IIF statements I adapted from another database
(I’m a novice at this). The field I’m querying is text format and contains
both alpha and numeric values. When I test for a null value the IIF works
fine, but when I test for a numeric value I get an #ERROR.
Spread Error1: IIf(([Tbl 1 Eligible Closed Deposit Opps Appended]!Spread Is
Null),1,0)
Spread Error2: IIf(([CCC Fall 2007 Eligible Products]![IB/NIB]="NIB" And
[Tbl 1 Eligible Closed Deposit Opps Appended]!Spread<4),1,0)
Spread Error3: IIf(([CCC Fall 2007 Eligible Products]![IB/NIB]="NIB" And
[Tbl 1 Eligible Closed Deposit Opps Appended]!Spread>6),1,0)
Spread Error4: IIf(([CCC Fall 2007 Eligible Products]![IB/NIB]<>"NIB" And
[Tbl 1 Eligible Closed Deposit Opps Appended]!Spread<0.1) Or ([CCC Fall 2007
Eligible Products]![IB/NIB]<>"NIB" And [Tbl 1 Eligible Closed Deposit Opps
Appended]!Spread>6),1,0)
I originally had Spread Error 2 & 3 in a single “and†IIF and split them to
see if I could isolate the problem, but no luck.
Any ideas? I can't control the formatting in the source application, can
only work with a file extract. I'm working with Access 2003.
from a sales database using IIF statements I adapted from another database
(I’m a novice at this). The field I’m querying is text format and contains
both alpha and numeric values. When I test for a null value the IIF works
fine, but when I test for a numeric value I get an #ERROR.
Spread Error1: IIf(([Tbl 1 Eligible Closed Deposit Opps Appended]!Spread Is
Null),1,0)
Spread Error2: IIf(([CCC Fall 2007 Eligible Products]![IB/NIB]="NIB" And
[Tbl 1 Eligible Closed Deposit Opps Appended]!Spread<4),1,0)
Spread Error3: IIf(([CCC Fall 2007 Eligible Products]![IB/NIB]="NIB" And
[Tbl 1 Eligible Closed Deposit Opps Appended]!Spread>6),1,0)
Spread Error4: IIf(([CCC Fall 2007 Eligible Products]![IB/NIB]<>"NIB" And
[Tbl 1 Eligible Closed Deposit Opps Appended]!Spread<0.1) Or ([CCC Fall 2007
Eligible Products]![IB/NIB]<>"NIB" And [Tbl 1 Eligible Closed Deposit Opps
Appended]!Spread>6),1,0)
I originally had Spread Error 2 & 3 in a single “and†IIF and split them to
see if I could isolate the problem, but no luck.
Any ideas? I can't control the formatting in the source application, can
only work with a file extract. I'm working with Access 2003.