Hi, very new to MS-Access. Help pls.
I'm creating an extract(.txt file) by running a select
query on 2 tables swarc, swsr. One particular field
(g_total) in the extract has to be retrieved upon a
condition.
The condition is,
if swsr.id_1 is null
then
g_total should be swarc.ret_val
else
g_total = null
I tried to use a Switch. But it doesnt work. Below is the
query with just that field alone.
SELECT
Switch([swsr.id_1] is null,[swarc.ret_val]) AS g_total
from swarc, swsr
Can you pls help me out. I'm not sure whether I should use
the switch.
Thanks,
Nithin
I'm creating an extract(.txt file) by running a select
query on 2 tables swarc, swsr. One particular field
(g_total) in the extract has to be retrieved upon a
condition.
The condition is,
if swsr.id_1 is null
then
g_total should be swarc.ret_val
else
g_total = null
I tried to use a Switch. But it doesnt work. Below is the
query with just that field alone.
SELECT
Switch([swsr.id_1] is null,[swarc.ret_val]) AS g_total
from swarc, swsr
Can you pls help me out. I'm not sure whether I should use
the switch.
Thanks,
Nithin