Change field in one table updates field in another table
Posted: Mon Oct 10, 2011 9:54 am
Hello all,
I have a database with two tables: vehicles, and workorders. The default 'status' field in the vehicle table is 'available'; however, if a workorder is filled out for that vehicle, I'd like the new workorder entry to be able to adjust the status of the vehicle as appropriate. This way, the department owning the vehicle can see all the details regarding the vehicle problem report and repair status, but other departments (who can look at the vehicle table) would only see the current availability status. Thus, entering a workorder in the workorder table allows a user to automatically change the status in the vehicle table.
Any suggestions?
TIA,
-manifold
I have a database with two tables: vehicles, and workorders. The default 'status' field in the vehicle table is 'available'; however, if a workorder is filled out for that vehicle, I'd like the new workorder entry to be able to adjust the status of the vehicle as appropriate. This way, the department owning the vehicle can see all the details regarding the vehicle problem report and repair status, but other departments (who can look at the vehicle table) would only see the current availability status. Thus, entering a workorder in the workorder table allows a user to automatically change the status in the vehicle table.
Any suggestions?
TIA,
-manifold