qr = qbds.addRange(fieldNum(CustTrans, Invoice)); qr.value(SysQuery::valueNotEmptyString()); qr.status(RangeStatus::Open);