September 22, 201510 yr I'm trying to sum a set of related records that only contain a specific value: ExecuteSQL ( "SELECT SUM (Subtotal) FROM LineItems WHERE id = InvoiceID AND sFlag = 1" ; "" ; "" ) but I'm getting a null result. The Subtotal field is a calculated field. Ideas?
September 22, 201510 yr Try ExecuteSQL ( " SELECT SUM (Subtotal) FROM LineItems WHERE id = ? AND sFlag = 1 " ; "" ; "" ; InvoiceID)
Create an account or sign in to comment