Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SIMPLE TRIGGER QUESTION

Status
Not open for further replies.

SeanB

Programmer
Jul 19, 2001
70
0
0
US
Hello what is the syntax for a trigger just to have it on specific fields being updated. For example, I have a table called tblOrders. If field called "Driver" is updated I want the trigger to fire. Thanks. I dont want to trigger to fire on the whole table.
 
SeanB -

You can't have a trigger fire on individual fields, but inside the trigger you can use an "if update", like so:

if update(Driver)
Begin
do some processing
end

APF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top