alap43841
10-08-2008, 02:46 AM
Dear Experts, I am creating a database to monitor stock price. One of my friends prepared a program by VB that extracts data from web and save in the access table every after 3 minutes. I am using that table as my data source of my database. I am facing a problem, that is the VB program saves the high and low value of the stock for the duration of that 3 minutes, but I want to get the hightest and lowest value during the trade hour. Like at 10:13 hours one stock was sold by 10$ and the highest price from 10:10 TO 10:13 was 13$, this is what I get from the table created by the VB Program. But at 10:06 to 10:09 the highest price of that stacock was 16$. So the highest price of the stock is 16$ upto 10:13 form the opening of the market. Is it possible to add another field with the table that will autmatically copy and store the highest price only. I am not an expert of VB or VBA, but I understand how to execute some instuction. It will highly helpful for me if you could attatch a small sample db with your solution. Please help me, I am trying to figure out the solution desperately but could not succeed, your cooperation will be highly appreciated.