MattSmithProg
Programmer
Hi all,
Just coming back in to doing some programing and have got stuck. I just can't seem to work out what I am doing wrong. Access keeps telling me there is a syntax error. Can you have a look and let me know what I am doing wrong.
SELECT
ContractNo,
OrdDate,
CASE
WHEN RollerDoorsOrd = 0 THEN 'N/A'
WHEN RollerDoorsHere = RollerDoorsOrd THEN 'Y'
ELSE 'N'
as RD
FROM
Contracts
WHERE
CustId = 1
Matt Smith
No two nulls are the same
Just coming back in to doing some programing and have got stuck. I just can't seem to work out what I am doing wrong. Access keeps telling me there is a syntax error. Can you have a look and let me know what I am doing wrong.
SELECT
ContractNo,
OrdDate,
CASE
WHEN RollerDoorsOrd = 0 THEN 'N/A'
WHEN RollerDoorsHere = RollerDoorsOrd THEN 'Y'
ELSE 'N'
as RD
FROM
Contracts
WHERE
CustId = 1
Matt Smith
No two nulls are the same