Here’s A trigger I created
Create Trigger TRG_status_change ON Order_entry
For Update
As
If update (Last_cost_center_code)
Begin
Insert Job_workflow (Cost_center_code, row_id)
Select Last_Cost_center_code, row_id
From inserted
End
I think it will work if I only knew how I could make the primary key unique or to select a number that has not been used yet
Thanks Greg
Create Trigger TRG_status_change ON Order_entry
For Update
As
If update (Last_cost_center_code)
Begin
Insert Job_workflow (Cost_center_code, row_id)
Select Last_Cost_center_code, row_id
From inserted
End
I think it will work if I only knew how I could make the primary key unique or to select a number that has not been used yet
Thanks Greg