Hi all, this is an old thread I need to revisit. Slighty revised.
For matching accounts and securities: I need to calculate the difference in a stock price from one day to another, and create a cumulative return over time. I get that this is more of an excel-style function, but I know it is possible in Access with some "on open" or "on click" code in a form. I just don't know how to do it.
This would be an append query, so the results (along with other fields) would post to an existing table called "Results1". Im good with the append process, I just need the query to create the results.
Attached is a spreadsheet with the formulas in column D. I can also post a small sample DB if that helps.
In VBA I could set the value in the beginning date row to a constant, and use that value in the formula for the ending date row, but I don't know how to translate this to access. I looked everywhere I can think of online and can't find the method.
As always, I really appreciate the help.
For matching accounts and securities: I need to calculate the difference in a stock price from one day to another, and create a cumulative return over time. I get that this is more of an excel-style function, but I know it is possible in Access with some "on open" or "on click" code in a form. I just don't know how to do it.
This would be an append query, so the results (along with other fields) would post to an existing table called "Results1". Im good with the append process, I just need the query to create the results.
Attached is a spreadsheet with the formulas in column D. I can also post a small sample DB if that helps.
In VBA I could set the value in the beginning date row to a constant, and use that value in the formula for the ending date row, but I don't know how to translate this to access. I looked everywhere I can think of online and can't find the method.
As always, I really appreciate the help.