T
THuff
I am setting up a database to track Vehicle Expenses for my company.
In this database exist the table: tblVehDetails
In this table exist the following fields:
DetailID as Primary Key
VehNum as long integer
Date as Date/time
Gallons as double
Cost as currency
Expenseid as long integer
Vendorid as long integer
Odometer as long integer
Notes as memo
VNid as long integer
I need to calculate the miles the vehicle has traveled
over the course of time. More specifically every month.
I understand how to calculate two different fields within a query
but do not know how to calculate data in the same field.
Ultimately the miles traveled ends up on a monthly report and it may be
within the report that this calculation needs to take place.
At this moment I am drawing a blank on how to proceed.
Thanks in advance for any enlightening information you may provide.
Terry
In this database exist the table: tblVehDetails
In this table exist the following fields:
DetailID as Primary Key
VehNum as long integer
Date as Date/time
Gallons as double
Cost as currency
Expenseid as long integer
Vendorid as long integer
Odometer as long integer
Notes as memo
VNid as long integer
I need to calculate the miles the vehicle has traveled
over the course of time. More specifically every month.
I understand how to calculate two different fields within a query
but do not know how to calculate data in the same field.
Ultimately the miles traveled ends up on a monthly report and it may be
within the report that this calculation needs to take place.
At this moment I am drawing a blank on how to proceed.
Thanks in advance for any enlightening information you may provide.
Terry