V
Vylent Fyre
Okay guys - I'm back =) (Oh no! I know... hehe)
Here's my dilemma today...
I have one calculation I am trying to do. It works great in Excel, but I
just can't get it to operate correctly in Access. I know it has to do with
null values, so I've tried numerous different ways with the IIf(NZ
functionality and I'm still running into either "Overflow" messages or just
getting 0's when I should be getting numbers - I'll copy the Excel Formula in
here that works perfectly, and I'll break it down to the Field Names in [ ]'s
that corresponds to the Excel Cell Ranges.
Excel Formula:
=+(M118-1)*N118/(N118-M118)+1
M118 = [Incurred LDF]
N118 = [Paid LDF]
They both have null values in their columns inside the table - The latest
formula I tried (obviously not correct) is this one:
Case LDF: IIf(NZ([Incurred LDF]),0)-1*IIf(NZ([Paid LDF]),0)/IIf(NZ([Paid
LDF]),0)-[Incurred LDF]+1
I've even tried breaking it down into pieces (two, three, and four pieces)
but I don't want to have multiple queries just for one expression/calculation
when I know if it's done right you can do it in one field =)
ANY help on this anyone could give me... I would be so VERY VERY grateful!! =)
Thank you!!
Here's my dilemma today...
I have one calculation I am trying to do. It works great in Excel, but I
just can't get it to operate correctly in Access. I know it has to do with
null values, so I've tried numerous different ways with the IIf(NZ
functionality and I'm still running into either "Overflow" messages or just
getting 0's when I should be getting numbers - I'll copy the Excel Formula in
here that works perfectly, and I'll break it down to the Field Names in [ ]'s
that corresponds to the Excel Cell Ranges.
Excel Formula:
=+(M118-1)*N118/(N118-M118)+1
M118 = [Incurred LDF]
N118 = [Paid LDF]
They both have null values in their columns inside the table - The latest
formula I tried (obviously not correct) is this one:
Case LDF: IIf(NZ([Incurred LDF]),0)-1*IIf(NZ([Paid LDF]),0)/IIf(NZ([Paid
LDF]),0)-[Incurred LDF]+1
I've even tried breaking it down into pieces (two, three, and four pieces)
but I don't want to have multiple queries just for one expression/calculation
when I know if it's done right you can do it in one field =)
ANY help on this anyone could give me... I would be so VERY VERY grateful!! =)
Thank you!!