W
Walter
I am working on a DB to store mileage and fuel records for
a trucking company. The data would come from trip sheets
turned in by drivers with OD entries for crossing state
lines, fuel, and stops for load, unload, etc. The Trip
Details table would store date, truck #, driver. An
Odometer table would store the OD readings. An OD
Description table would store OD descriptions (state line,
fuel, stop, Etc.)that explain what that OD is for. A
States table stores the state for each OD. A fuel table
stores gal of fuel purchased. A Stops table stores
purpose for stops (load, unload, etc.) For each OD
reading, you can only have 1 description, 1 state, 1
purpose, etc. However, there may be many OD readings for
each trip entry (main form). I have the form set up
similar to this:
Date: TripID #: (autonumber)
Truck #: Driver:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OD Desc State Fuel Purpose
The top info (date, truck, driver) would be main form.
The other info would be a subform in data sheet view
linked by the TripID number. My question is how to define
table relationships for this to work. Would this be a
1:many relationship between Trip Details & the OD tables,
and 1:1 between the OD and related tables? Or, 1:many
between Trip Details and all other tables (Desc, State,
Fuel, etc.)?
If anyone can help with this, I'll greatly appreciate it.
Thanks, Walter
a trucking company. The data would come from trip sheets
turned in by drivers with OD entries for crossing state
lines, fuel, and stops for load, unload, etc. The Trip
Details table would store date, truck #, driver. An
Odometer table would store the OD readings. An OD
Description table would store OD descriptions (state line,
fuel, stop, Etc.)that explain what that OD is for. A
States table stores the state for each OD. A fuel table
stores gal of fuel purchased. A Stops table stores
purpose for stops (load, unload, etc.) For each OD
reading, you can only have 1 description, 1 state, 1
purpose, etc. However, there may be many OD readings for
each trip entry (main form). I have the form set up
similar to this:
Date: TripID #: (autonumber)
Truck #: Driver:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OD Desc State Fuel Purpose
The top info (date, truck, driver) would be main form.
The other info would be a subform in data sheet view
linked by the TripID number. My question is how to define
table relationships for this to work. Would this be a
1:many relationship between Trip Details & the OD tables,
and 1:1 between the OD and related tables? Or, 1:many
between Trip Details and all other tables (Desc, State,
Fuel, etc.)?
If anyone can help with this, I'll greatly appreciate it.
Thanks, Walter