Richard1980
Registered User.
- Local time
- Today, 13:50
- Joined
- Aug 13, 2012
- Messages
- 72
Hello,
I have a table where are stored market prices for different securities. This table is loaded as subform in another form and shows all price data for a given security. In the subform I insert new prices and a textbox automatically calculate the price change (on the previous day)
No problem about the calculation when I am on the last record of the recordset, but the problem comes up when I have to insert prices for past dates. I might have this situation:
Date - Price - Change
01/09/2014 - 100 - n/a
02/09/2014 - 101 - +1,00%
03/09/2014 - (price not inserted yet)
04/09/2014 - (price not inserted yet)
05/09/2014 - 101,50 - n/a
08/09/2014 - 101,50 - unch.
On Sept. 9th I want to insert prices for the days 03 and 04 and get this calculation of daily price change on Sept. 3rd, 4th and 5th.
Do you have any suggestion?
Many thanks.
Bye.
R. Righetti
I have a table where are stored market prices for different securities. This table is loaded as subform in another form and shows all price data for a given security. In the subform I insert new prices and a textbox automatically calculate the price change (on the previous day)
No problem about the calculation when I am on the last record of the recordset, but the problem comes up when I have to insert prices for past dates. I might have this situation:
Date - Price - Change
01/09/2014 - 100 - n/a
02/09/2014 - 101 - +1,00%
03/09/2014 - (price not inserted yet)
04/09/2014 - (price not inserted yet)
05/09/2014 - 101,50 - n/a
08/09/2014 - 101,50 - unch.
On Sept. 9th I want to insert prices for the days 03 and 04 and get this calculation of daily price change on Sept. 3rd, 4th and 5th.
Do you have any suggestion?
Many thanks.
Bye.
R. Righetti