I have a database set up, and the end query basically gives me three results for my data.
Last Value, Average Value & Max Value.
For whatever reason, the last value does not seem to work correctly. It only seems to include the original records, and no records which have since been added (through a forms add record procedure).
Have I missed something:-
Last Value, Average Value & Max Value.
For whatever reason, the last value does not seem to work correctly. It only seems to include the original records, and no records which have since been added (through a forms add record procedure).
Have I missed something:-
Code:
SELECT Table1.NAME, Last(Table1.Value) AS LAST, Max(Table1.Value) AS [MAX], Avg(Table1.Value) AS [AVG], Round((([LAST]+[AVG]+[MAX])/3),3) AS Value
FROM Table1
GROUP BY Table1.NAME;