I'm creating a database for a freight company to keep track of truckloads that they have or may dispatch drivers to. The data is split across many tables right now tblOrders (where the load detail is going), tblCustomers (companies that are looking to receive loads), tblCarriers (companies that move the loads). There are also tables for phone numbers and addresses but they are not important for right now.
The orders table (tblOrders) has fields for miles, hours, pieces, and pallets all of which could be the basis for how the customer is charged or the carrier is paid. The problem is that these sometimes a carrier will calculate their miles differently than the customer, when this happens I need to store both of those values. Here is an example: ABC Company tells us they want to move some of their product from pointA to pointB which is 100 miles. We then contact a carrier for the load, but the carrier claims that the distance between pointA and pointB is 110 miles (not all mapping software is exact in their mile calculations).
I'm fairly certain that I need to move the miles, hours, pieces, etc to a new table, but I'm not sure the best way to link the data to each load so that it will still display on the form.
If I were to create a new table called tblOrderDetails to contain the values for miles, hours, etc as well as some yes/no fields for "Carrier_Details", "Main_Details", "Fleet_Details"(I didn't get into fleet but it's the same concept as carriers, the data could be different) how would I update or even display the data on the main form?
I've been trying to figure out a way to
The orders table (tblOrders) has fields for miles, hours, pieces, and pallets all of which could be the basis for how the customer is charged or the carrier is paid. The problem is that these sometimes a carrier will calculate their miles differently than the customer, when this happens I need to store both of those values. Here is an example: ABC Company tells us they want to move some of their product from pointA to pointB which is 100 miles. We then contact a carrier for the load, but the carrier claims that the distance between pointA and pointB is 110 miles (not all mapping software is exact in their mile calculations).
I'm fairly certain that I need to move the miles, hours, pieces, etc to a new table, but I'm not sure the best way to link the data to each load so that it will still display on the form.
If I were to create a new table called tblOrderDetails to contain the values for miles, hours, etc as well as some yes/no fields for "Carrier_Details", "Main_Details", "Fleet_Details"(I didn't get into fleet but it's the same concept as carriers, the data could be different) how would I update or even display the data on the main form?
I've been trying to figure out a way to