Topic: calculated field help

Добрый день!
Есть автомобиль с начальными показаниями спидометра. Ежедневно, вносятся данные по суточному пробегу. Как вычеслить показания спидометра на текущую дату?
Заранее всем спасибо!

Good day!
There is a car with initial speedometer readings. Daily, data on daily mileage is entered. How to calculate the speedometer readings for the current date?
Thanks in advance to everyone!

Translated by Google

Post's attachments

Attachment icon SPEEDO.rar 294.06 kb, 159 downloads since 2021-06-16 

I'm just learning

2 (edited by domebil 2021-06-16 14:46:49)

Re: calculated field help

see now

Post's attachments

Attachment icon SPEEDO 2.rar 294.37 kb, 176 downloads since 2021-06-16 

Domebil

Re: calculated field help

domebil, спасибо что обратили внимание на тему!
Боюсь, что я не правильно выразил свою мысль.
Допустим есть автомобиль номер ххх. Его стартовые показания на спидометре - 1000. В первый день он проехал 50 км, во второй день еще 10 км, а в третий день еще 40 км.
В результате, в Form1.TableGrid1 в столбце "Check out speedo" будут следующие значения: 1000; 1050; 1060.
То есть нужны текущие показания спидометра на начало дня с учетом предидущего пробега.
Заранее спасибо за помощь!

domebil, thanks for paying attention to the topic!
I am afraid that I have not correctly expressed my idea.
Let's say you have a car number xxx. His starting readings on the speedometer are 1000. On the first day he drove 50 km, on the second day another 10 km, and on the third day another 40 km.
As a result, in Form1.TableGrid1 the Check out speedo column will contain the following values: 1000; 1050; 1060. That is, you need the current speedometer readings at the beginning of the day, taking into account the previous run.
Thanks in advance for your help!

Translated by Google

I'm just learning

Re: calculated field help

Привет, Ронин,
Возможно, ему так и нравится (см. Приложенную программу).
Я временно изменил последовательность сортировки form1.tablegrid1, чтобы упростить проверку вычислений.
Надеюсь это поможет.
Derek.
.
Perhaps to it like this (please see the attached program).
I have temporarily changed the sort sequence of form1.tablegrid1 to make it easier to check the calculations.

Post's attachments

Attachment icon speedo2.zip 338.11 kb, 203 downloads since 2021-06-17 

Re: calculated field help

Дерек, спасибо что обратили внимание на тему!
Вы очень точно уловили суть вопроса.
Спасибо Вам огромное за помощь!

========================================

Derek, thanks for paying attention to the topic!
You very accurately grasp the essence of the question.
Thank you very much for your help!
   
Translated by Google

I'm just learning