jimmythegeek
Programmer
I need an insert trigger that checks a value in one field and if it is a certain string, then change it to another value. I need to change the string "Required Selection" to a corresponding foreign key value. So here is the pseudo-code (the name of the field is "answer").
If inserted.answer = "Required Selection"
set inserted.answer = 61
Hopefully this is not a stupid question. I'm also not sure whether this should be an "After Insert" trigger or not. I don't need any of the create trigger stuff, I just need the proper syntax for the instruction. Thanks in advance for any help.
Jim Lunde
We all agree your theory is crazy, but is it crazy enough?
If inserted.answer = "Required Selection"
set inserted.answer = 61
Hopefully this is not a stupid question. I'm also not sure whether this should be an "After Insert" trigger or not. I don't need any of the create trigger stuff, I just need the proper syntax for the instruction. Thanks in advance for any help.
Jim Lunde
We all agree your theory is crazy, but is it crazy enough?