E
eoin.corrigan
Hi - thanks in advance for help.
I have this query that will calcuate my positions on any day that
enter.
SELECT StockTransactions.DealCode, StockTransactions.Stock,
Sum(StockTransactions.Shares) AS SumOfShares
FROM StockTransactions
WHERE StockTransactions.TradeDate<[As Of]
GROUP BY StockTransactions.DealCode, StockTransactions.Stock
HAVING Sum(StockTransactions.Shares)>0;
However, I'd like to have the query run for every day between two
dates that I enter.
So, if I input start date as Jan 1 and end date as Jan 15 it will run
the above query repeatdly using Jan 1 as [As Of], Jan 2 as [As Of],
Jan 3 as [As Of],.....Jan 15 as [As Of].
Hope it's clear and thanks again!
I have this query that will calcuate my positions on any day that
enter.
SELECT StockTransactions.DealCode, StockTransactions.Stock,
Sum(StockTransactions.Shares) AS SumOfShares
FROM StockTransactions
WHERE StockTransactions.TradeDate<[As Of]
GROUP BY StockTransactions.DealCode, StockTransactions.Stock
HAVING Sum(StockTransactions.Shares)>0;
However, I'd like to have the query run for every day between two
dates that I enter.
So, if I input start date as Jan 1 and end date as Jan 15 it will run
the above query repeatdly using Jan 1 as [As Of], Jan 2 as [As Of],
Jan 3 as [As Of],.....Jan 15 as [As Of].
Hope it's clear and thanks again!