Hi
Try this
IF @OBJECT_TYPE='2' AND @TRANSACTION_TYPE IN (N'U')
BEGIN
if exists (Select T0.SlpCode from Ocrd T0 inner join
OUSR T1 ON T0.USERSIGN2=T1.USERID
where t1.SUPERUSER='N' and T0.CardCode =@list_of_cols_val_tab_del and t0.CardType = 'c' )
Begin
set @error = 30
set @error_message=N'You are Not authorised to change the Sales Employee'
End
END
With Regards
Balaji Sampath