I know it's on here but I can't find it.
Have a payment form (FrmCustPay) showing name, CID, etc.
Have Subform to enter payments.
I am trying to add a text box that shows the balance of the customer (using QryCIDBal) based on the CID field.
My query:
The text box name is CIDBalance and source is QryCIDBal.runbalance
All I get in the box is #Name.
I can execute the query and it prompts for the CID and once input, works fine.
What am I overlooking, please ?
Have a payment form (FrmCustPay) showing name, CID, etc.
Have Subform to enter payments.
I am trying to add a text box that shows the balance of the customer (using QryCIDBal) based on the CID field.
My query:
Code:
SELECT TblCustInfo.CID, TblCustInfo.Cancel, nz([SumOfChargeamt],0) AS Charges, nz([SumOfCreditamt],0) AS Payments, nz([SumOfChargeamt],0)-nz([SumOfCreditamt],0) AS RunBalance
FROM (TblCustInfo LEFT JOIN qryTotalCharges ON TblCustInfo.CID = qryTotalCharges.CID) LEFT JOIN qryTotalPayments ON TblCustInfo.CID = qryTotalPayments.CID
WHERE (((TblCustInfo.CID) Like [Forms]![FrmCustPay].[CID]) AND ((TblCustInfo.Cancel)="n"));
The text box name is CIDBalance and source is QryCIDBal.runbalance
All I get in the box is #Name.
I can execute the query and it prompts for the CID and once input, works fine.
What am I overlooking, please ?