Does anyone know if it's possible in access to replicate this kind of
SQL query?
select CASE CategoryID
WHEN 1 THEN 'Value 1'
WHEN 2 THEN 'Value 2'
ELSE 'Value Not Defined'
END AS DiscountPrice
from categories
Thank
Michel Lapointe
Example:
SELECT IIf(CategoryID=1, "Value 1", IIf(CategoryID=2, "Value 2", "Value Not
Defined")) AS DiscountPrice FROM Categories....
--
Wayne Morgan
Microsoft Access MVP
"Michel Lapointe" <a...@microsoft.com> wrote in message
news:O$DQYDnaE...@TK2MSFTNGP11.phx.gbl...
It work well, just need to make sure to double the " in a RowSource :)
ML
"Wayne Morgan" <comprev_gothro...@hotmail.com> a écrit dans le
message de news:e09jvMna...@TK2MSFTNGP10.phx.gbl...