D
DJTI via AccessMonster.com
Hi, I am a new user having problems with calculations in my database. After
reading many posts I understand that it is not good practice to store
calculations in tables, therefore I need help with my design.
I have a database project for Shareholders and their investments which is
used to calculate quarterly dividends, and redemptions (partial or complete).
Table1:
Shareholders
ShareholderID
Name
Address...
Table2
Investments
InvestmentID
InvestmentDate
InvestmentAmt
ShareValue
Table3
InvestmentDetails
InvDetailID
QuarterDate
QDivValue
QCashPdValue
CurShareValue
RedeemDate
RedeemAmt
I have a transaction form to show each shareholders activity. The two
calculations I am struggling with are Cumulative Shares and Total Value. I
believe the problem I cannot solve is that I do not know how to get a
calculation from a calculation.
Total Value is calculated in a text box on the transaction form with the
calculation =[Cumushares] * [CurShareValue], to get Total Value.
However I struggle with how to derive with my Cumulative Share total.
Cumulative Shares are based on a previous Cumulative Share and all
caculations stem from Cumulative shares.
ex. To find Dividend Earned: =Round([QDivValue]*[CumuShares],2)
Then Dividend earned is added to Cumushares to arrive at a new Cumushares for
the next quarter calculation.
CumuShares is: [Total Value] / [CurShareValue]
Any help to guide me in the right direction will be greatly appreciated.
Thanks,
DJTI
reading many posts I understand that it is not good practice to store
calculations in tables, therefore I need help with my design.
I have a database project for Shareholders and their investments which is
used to calculate quarterly dividends, and redemptions (partial or complete).
Table1:
Shareholders
ShareholderID
Name
Address...
Table2
Investments
InvestmentID
InvestmentDate
InvestmentAmt
ShareValue
Table3
InvestmentDetails
InvDetailID
QuarterDate
QDivValue
QCashPdValue
CurShareValue
RedeemDate
RedeemAmt
I have a transaction form to show each shareholders activity. The two
calculations I am struggling with are Cumulative Shares and Total Value. I
believe the problem I cannot solve is that I do not know how to get a
calculation from a calculation.
Total Value is calculated in a text box on the transaction form with the
calculation =[Cumushares] * [CurShareValue], to get Total Value.
However I struggle with how to derive with my Cumulative Share total.
Cumulative Shares are based on a previous Cumulative Share and all
caculations stem from Cumulative shares.
ex. To find Dividend Earned: =Round([QDivValue]*[CumuShares],2)
Then Dividend earned is added to Cumushares to arrive at a new Cumushares for
the next quarter calculation.
CumuShares is: [Total Value] / [CurShareValue]
Any help to guide me in the right direction will be greatly appreciated.
Thanks,
DJTI