Can you create a trigger that when an item on one table in updated, then values in another table are also updated.
For example, in a table called loans where I have a field called due date and return date. In another table called member, I have a 2 fields called late and bared. When the loan table is updated and the return date is greater then the due date, I want the late field in member to be incremented by one (with the max of 3). Once the late field in member reaches 3, then the field should = yes.
Can that be done with a trigger? Can all be done in one trigger on the loan table? Or will the last bit (Once the late field in member reaches 3, then the field should = yes) be done differently?
Any help would be most greatly received
Asad
For example, in a table called loans where I have a field called due date and return date. In another table called member, I have a 2 fields called late and bared. When the loan table is updated and the return date is greater then the due date, I want the late field in member to be incremented by one (with the max of 3). Once the late field in member reaches 3, then the field should = yes.
Can that be done with a trigger? Can all be done in one trigger on the loan table? Or will the last bit (Once the late field in member reaches 3, then the field should = yes) be done differently?
Any help would be most greatly received
Asad