That's strange. The syntax is correct.
Here's a very similar example from book on line:
****
USE pubs
GO
SELECT 'Price Category' =
CASE
WHEN price IS NULL THEN 'Not yet priced'
WHEN price < 10 THEN 'Very Reasonable Title'
WHEN price >= 10 and price < 20 THEN 'Coffee Table Title'
ELSE 'Expensive book!'
END,
CAST(title AS varchar(20)) AS 'Shortened Title'
FROM titles
ORDER BY price
GO
****
Suggest you re-post in the ADP newsgroup in case something different is
required in ADP.
--
HTH
Van T. Dinh
MVP (Access)
GB said:
Thank you for the reply it brought me a good step further.
The following works OK:
CASE WHEN [FieldA] 1 THEN [FieldA] ELSE [FieldB] END
But adding the > does not work, so the following is NOT OK:
CASE WHEN [FieldA] >1 THEN [FieldA] ELSE [FieldB] END
Hope for help...
Thanks
GB, DK