I have almost no experience in ACCESS so am trying to get the system functioning with minimal operator input.
Currently I have managed to modify a database generated by a SCADA system using a query which generates a PIVOT table, grouped by DateAndTime, for all the desired data for Reporting purposes.
I have not been able to set the DateAndTime range of that data; so then a set group of data can be sent as a file to an archive location either as raw data or a report.
Is there a method for setting the DateAndTime range on a PIVOT table.
Field DateAndTime format from database is (dd.mm.yy hh:mm:ss AM/PM)
I was hoping to have an operator input a date (with NO time stamp) and to then fix a time range between 7:00 am and 7:00 pm, then from 7:00 pm to 7:00 am the following day. I think I should be able to do that once I can sort out the DateAndTime "filter"
Current CODE:
Responses welcome.
Andrew
Currently I have managed to modify a database generated by a SCADA system using a query which generates a PIVOT table, grouped by DateAndTime, for all the desired data for Reporting purposes.
I have not been able to set the DateAndTime range of that data; so then a set group of data can be sent as a file to an archive location either as raw data or a report.
Is there a method for setting the DateAndTime range on a PIVOT table.
Field DateAndTime format from database is (dd.mm.yy hh:mm:ss AM/PM)
I was hoping to have an operator input a date (with NO time stamp) and to then fix a time range between 7:00 am and 7:00 pm, then from 7:00 pm to 7:00 am the following day. I think I should be able to do that once I can sort out the DateAndTime "filter"
Current CODE:
Code:
TRANSFORM sum(FloatTable.Val) AS Sumval
SELECT FloatTable.DateAndTime
FROM FloatTable INNER JOIN TagTable ON FloatTable.TagIndex=TagTable.TagIndex
GROUP BY FloatTable.DateAndTime
PIVOT TagTable.TagName In ("Report\Blend_RunMinHG",Report\Blend_RunMinLG,Report\Blend_RunMinMAG,Report\BW03_RunMin,Report\BW03_Total,Report\BW03_Total_HG,Report\BW03_Total_LG,);
Andrew
Comment