W
WhytheQ
I have a simple table:
Date1 Value1
Date2 Value2
Date3 Value3
--
--
--
What is the SQL string I need to use to find the average of the Value
field over the 7 days preceding a particular date?
I actually need this for a macro in Excel which need to use a date in a
cell, given by the user, and then once the macro is run, a query need
to go and get the data from an Access table.
(I also need an average over 30 day prior to specified date, which
should be easy if I have the answer to the above - and also the
preceding 30days, which might be slightly trickier!)
Any help greatly appreciated, as I'm pretty new to dtatbase work.
Jason.
Date1 Value1
Date2 Value2
Date3 Value3
--
--
--
What is the SQL string I need to use to find the average of the Value
field over the 7 days preceding a particular date?
I actually need this for a macro in Excel which need to use a date in a
cell, given by the user, and then once the macro is run, a query need
to go and get the data from an Access table.
(I also need an average over 30 day prior to specified date, which
should be easy if I have the answer to the above - and also the
preceding 30days, which might be slightly trickier!)
Any help greatly appreciated, as I'm pretty new to dtatbase work.
Jason.