R
Revned
Hi,
i have a select query with the following SQL
SELECT tblOrder.CustomerID, [GivenName] & " " & [Surname] AS Name,
tblCustomer.SchedDelivery, tblOrder.OrderQty, tblOrder.RefType,
tblOrder.RefNo, tblOrder.Date, tblOrder.Amount, tblOrder.RefTyp_Pay,
tblOrder.RefNo_Pay, tblOrder.PayAmt, [Amount]-[PayAmt] AS Bal, tblOrder.Status
FROM tblCustomer INNER JOIN tblOrder ON tblCustomer.CustomerID =
tblOrder.CustomerID
WHERE (((tblOrder.OrderQty) Is Not Null));
I need a formula that when [Bal] field is equal to zero
it will display "Closed" under [Status] field
and displays "Open" when [Bal] field is in IsNull.
how to accomplish this one, can any is kind of helping in figuring this out.
thanks
i have a select query with the following SQL
SELECT tblOrder.CustomerID, [GivenName] & " " & [Surname] AS Name,
tblCustomer.SchedDelivery, tblOrder.OrderQty, tblOrder.RefType,
tblOrder.RefNo, tblOrder.Date, tblOrder.Amount, tblOrder.RefTyp_Pay,
tblOrder.RefNo_Pay, tblOrder.PayAmt, [Amount]-[PayAmt] AS Bal, tblOrder.Status
FROM tblCustomer INNER JOIN tblOrder ON tblCustomer.CustomerID =
tblOrder.CustomerID
WHERE (((tblOrder.OrderQty) Is Not Null));
I need a formula that when [Bal] field is equal to zero
it will display "Closed" under [Status] field
and displays "Open" when [Bal] field is in IsNull.
how to accomplish this one, can any is kind of helping in figuring this out.
thanks