I have four entities: LOAN, PATIENT, EQUIPMENT and REPAIR.
The entity EQUIPMENT has a status of Available, in Repair and on Loan. If on the piece of equipment is on loan in LOANS, it cannot appear in repair and the opposite for repairs - the repaired piece of equipment can't be in LOANS at the same time. When the piece of equipment is returned, the status must be set back to "A" (for available) in the equipment entity.
In the form to enter a new for the LOAN entity, when SAVE is clicked (or something else!!), i want to change the status in equipment to "L" but how??
Basically, how can I change the something in a table using the event procedures.
Help
The entity EQUIPMENT has a status of Available, in Repair and on Loan. If on the piece of equipment is on loan in LOANS, it cannot appear in repair and the opposite for repairs - the repaired piece of equipment can't be in LOANS at the same time. When the piece of equipment is returned, the status must be set back to "A" (for available) in the equipment entity.
In the form to enter a new for the LOAN entity, when SAVE is clicked (or something else!!), i want to change the status in equipment to "L" but how??
Basically, how can I change the something in a table using the event procedures.
Help