S
smck
I am tring to use the NPV function without success. How can one generate NPV
in Access without VBA coding?
Thanks
in Access without VBA coding?
Thanks
How can one generate NPV
in Access without VBA coding?
Hi John,
Thanks for your quick response. Is there a link I can access that would give
me more information?
I notice that in doing a Query by Design, in the Expression Builder,
Built-In Functions there is a reverence to NPV.
The argument is NPV(rate,ValueArray). How would one use that option? or,
does it still lead back to VBA Coding or Referencing Excel?
smck said:Hi John,
Thanks for your quick response. Is there a link I can access that would give
me more information?
I notice that in doing a Query by Design, in the Expression Builder,
Built-In Functions there is a reverence to NPV.
The argument is NPV(rate,ValueArray). How would one use that option? or,
does it still lead back to VBA Coding or Referencing Excel?
There
was another hurdle with the double array required by NPV so I had to get
creative.
John said:Thanks so much, James! I have no taste for accounting and wouldn't have known
where to start.
John W. Vinson [MVP]
James said:Either method would force me
to use the definition of PV in the query SQL itself instead of using the
NPV function. Each payment would make its own contribution to the NPV
that SUM can aggregate. That seems a lot more useful. I'll try to post
something further by Monday night.
To see if at least one negative value exists in the table:
SELECT IIf(Sum(Abs([PaymentAmount] < 0)) > 0, "It's True", "It's False")
AS NegativeExists FROM tblCashPayments;
Jamie said:To see if at least one negative value exists in the table:
SELECT IIf(Sum(Abs([PaymentAmount] < 0)) > 0, "It's True", "It's False")
AS NegativeExists FROM tblCashPayments;
For interest:
SELECT MIN(ABS(PaymentAmount)) <> MIN(PaymentAmount)
AS NegativeExists
FROM tblCashPayments;
Jamie.
--
James said:Jamie said:To see if at least one negative value exists in the table:
SELECT IIf(Sum(Abs([PaymentAmount] < 0)) > 0, "It's True", "It's False")
AS NegativeExists FROM tblCashPayments;
For interest:
SELECT MIN(ABS(PaymentAmount)) <> MIN(PaymentAmount)
AS NegativeExists
FROM tblCashPayments;
Jamie.
--
What if the minimum PaymentAmount value in the table is 0 (Note: this
situation shouldn't be allowed anyway)?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.