Hi all,
How can I do this in Access query? It say it has violation problem. But I really need to use iif function in this update statement. How can I workaround that? thanks!
update t_header as h
set h.price = iif(h.FX=1, h.amount/h.price, h.fx*(h.amount/h.price))
where h.Refno='1'
and format(h.dealingdate,'dd/mm/yyyy')=#13/02/2009#
How can I do this in Access query? It say it has violation problem. But I really need to use iif function in this update statement. How can I workaround that? thanks!
update t_header as h
set h.price = iif(h.FX=1, h.amount/h.price, h.fx*(h.amount/h.price))
where h.Refno='1'
and format(h.dealingdate,'dd/mm/yyyy')=#13/02/2009#