B
bluefalcon904
HI ... Can you also help? Im such a newbie in Ms Access and I need desperate
help.
Can you please help me translate below SQL statement into an IIF statement?
Select
A.SecIDFlag, A.SecID as MasterSecID,
case when A.SecIDFlag = 1 then
(select top 1 SecID from SecRefCode where RefCodeType='12' and
RefCode=A.Secid)
when A.SecIDFlag = 8 then
(select top 1 SecID from SecRefCode where RefCodeType='06' and
RefCode=A.Secid)
when A.SecIDFlag = 30 then
(select top 1 SecID from SecRefCode where RefCodeType='08' and
RefCode=A.Secid)
else null
end as NewSecID
from SecMaster A
Im not so familar on how to use the functions/module in Ms Access.
Hope you can help.
Thanks
help.
Can you please help me translate below SQL statement into an IIF statement?
Select
A.SecIDFlag, A.SecID as MasterSecID,
case when A.SecIDFlag = 1 then
(select top 1 SecID from SecRefCode where RefCodeType='12' and
RefCode=A.Secid)
when A.SecIDFlag = 8 then
(select top 1 SecID from SecRefCode where RefCodeType='06' and
RefCode=A.Secid)
when A.SecIDFlag = 30 then
(select top 1 SecID from SecRefCode where RefCodeType='08' and
RefCode=A.Secid)
else null
end as NewSecID
from SecMaster A
Im not so familar on how to use the functions/module in Ms Access.
Hope you can help.
Thanks