I am trying to write an If then else statement in Access.
i have query mkePallet which is join from tbl_A and tbl_B using Material Code.
my statement needs to be something like this:
if TotalQty = OpenQty,New total = OpenQty
else if TotalQty < OpenQty, New total = TotalQty
else
New total = OpenQty
TotalQty is from tbl_A and Open Qty is from tbl_B. New total is the new field I am creating with that statement.
how can do this in query...anybody can help me....
i have query mkePallet which is join from tbl_A and tbl_B using Material Code.
my statement needs to be something like this:
if TotalQty = OpenQty,New total = OpenQty
else if TotalQty < OpenQty, New total = TotalQty
else
New total = OpenQty
TotalQty is from tbl_A and Open Qty is from tbl_B. New total is the new field I am creating with that statement.
how can do this in query...anybody can help me....