P
pushrodengine via AccessMonster.com
I need to calculate the difference between two fields in a query. The query
is called “qryRemote†and within the query are the fields “10-8Time†and “10-
97Timeâ€. The data entered into these fields are in the format “0000†through
to “2400â€. I need to subtract the “10-8Time from the “10-97Time†and then sum
the results and display the result in a report.
For example, after the query is run the results are:
10-8Time 10-97Time
---------------------------------
1307 1331
1858 1909
2018 2023
First the difference is determined: 10-8Time is subtracted form the 10-97Time
for each.
10-97Time 10-8Time
--------------------------------
1331 - 1307 = 24
1909 - 1858 = 51
2023 - 2018 = 5
Then the differences are added.
24+51+5 = 80
The number 80 is displayed as a number within a report as the Total Time in
Seconds.
Thanks
is called “qryRemote†and within the query are the fields “10-8Time†and “10-
97Timeâ€. The data entered into these fields are in the format “0000†through
to “2400â€. I need to subtract the “10-8Time from the “10-97Time†and then sum
the results and display the result in a report.
For example, after the query is run the results are:
10-8Time 10-97Time
---------------------------------
1307 1331
1858 1909
2018 2023
First the difference is determined: 10-8Time is subtracted form the 10-97Time
for each.
10-97Time 10-8Time
--------------------------------
1331 - 1307 = 24
1909 - 1858 = 51
2023 - 2018 = 5
Then the differences are added.
24+51+5 = 80
The number 80 is displayed as a number within a report as the Total Time in
Seconds.
Thanks