Below is my trigger that is currently not working.
This is for newly inserted records in the Equipment_Inspection_Table. Pretty much, if Equipment_Inspection_Table.Serial# (#inserted.Serial_Num) matches Equipment_Table.Serial#, just update a few fields. If not, create a new record with the information supplied from #inserted into Equipment_Table.
The trigger is on Equipment_Inspection_Table. When a new record is inserted to this table, I need to query the Equipment_Table and see if there is a matching record. If there is, I need to update the information. If the newly inserted record does not match anything in the Equipment_Table, then I need to add it.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
kpcollier
Below is my trigger that is currently not working.
This is for newly inserted records in the Equipment_Inspection_Table. Pretty much, if Equipment_Inspection_Table.Serial# (#inserted.Serial_Num) matches Equipment_Table.Serial#, just update a few fields. If not, create a new record with the information supplied from #inserted into Equipment_Table.
The trigger is on Equipment_Inspection_Table. When a new record is inserted to this table, I need to query the Equipment_Table and see if there is a matching record. If there is, I need to update the information. If the newly inserted record does not match anything in the Equipment_Table, then I need to add it.
The setup above doesn't seem to do either.
Any help is appreciated.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.