Good day,
I need a little help with two queries. It is related to the same problem.
I import data from a different sever via Excel and try to do most of the manipulations in Excel. Most of the work is straight forward but the one problem I experience is capturing the data. The data for a day starts at 08:00 am on day one and end at 7:59 am on day two.
How could I calculate the daily average? One way I use is to change the date for the period 00:00 to 07:00. Is there a different way of doing it?
My other problem with the one sample point is, there is not a flow for 24 hours a day. I need to find the first instance when flow started and record the volume and time. Once again the first instance is from 08:00 in the morning. I do believe some VBA code would do the trick. I tried running a query using the first function but it comes up way short. From the actual data it gives me only 13 records but a visual check show about 4 times as much.
The SQL for that query is (approximate no of records 2000)
SELECT qryMEWS0300StatsInput.Sdate, First(qryMEWS0300StatsInput.Flow) AS FirstOfFlow
FROM qryMEWS0300StatsInput
GROUP BY qryMEWS0300StatsInput.Sdate
HAVING (((First(qryMEWS0300StatsInput.Flow))>0));
Thanks. Hennie
I need a little help with two queries. It is related to the same problem.
I import data from a different sever via Excel and try to do most of the manipulations in Excel. Most of the work is straight forward but the one problem I experience is capturing the data. The data for a day starts at 08:00 am on day one and end at 7:59 am on day two.
How could I calculate the daily average? One way I use is to change the date for the period 00:00 to 07:00. Is there a different way of doing it?
My other problem with the one sample point is, there is not a flow for 24 hours a day. I need to find the first instance when flow started and record the volume and time. Once again the first instance is from 08:00 in the morning. I do believe some VBA code would do the trick. I tried running a query using the first function but it comes up way short. From the actual data it gives me only 13 records but a visual check show about 4 times as much.
The SQL for that query is (approximate no of records 2000)
SELECT qryMEWS0300StatsInput.Sdate, First(qryMEWS0300StatsInput.Flow) AS FirstOfFlow
FROM qryMEWS0300StatsInput
GROUP BY qryMEWS0300StatsInput.Sdate
HAVING (((First(qryMEWS0300StatsInput.Flow))>0));
Thanks. Hennie