I'm trying to set up a supply management report. I have a Supply Table with the following fields:
DataAbastecimento,
CódigoVeiculo,
KmAbastecimento,
Quantidade,
Valor
In the Report I am doing, I need to know the KM Traveled ... then follow the example:
Veiculo Data Abastecimento KM KM Anterior
999 02/06/2016 10.000 Buscar o Último KM de Abastecimento de Maio
999 08/06/2016 10.800 10.000
999 11/06/2016 11.300 10.800
999 19/06/2016 13.200 11.300
To the KM column, it is a simple search ... however this Previous KM is beating me some time.
Has anyone ever come across this?