Here is where the code fails.... Can anyone tell me why
Expiration =
IF Cardholder.Activation = LockAccess.Activation THEN
LockAccess.Activation
ELSE
Cardholder.Activation
END
-----------------------------------------------------Server: Msg 156, Level 15, State 1, Line 10
Incorrect syntax near the keyword 'IF'.
Server: Msg 156, Level 15, State 1, Line 10
Incorrect syntax near the keyword 'THEN'.
Expiration =
IF Cardholder.Activation = LockAccess.Activation THEN
LockAccess.Activation
ELSE
Cardholder.Activation
END
-----------------------------------------------------Server: Msg 156, Level 15, State 1, Line 10
Incorrect syntax near the keyword 'IF'.
Server: Msg 156, Level 15, State 1, Line 10
Incorrect syntax near the keyword 'THEN'.