title: Query range not equal to zero
body: <p>I'm in AX 2012 R2 environment.</p>
  
  <p>I would like to add a query range to HcmEmployment table and filter out rows that have a LegalEntity value = 0.</p>
  
  <p>The following code fails at runtime with the exception "Invalid Range".</p>
  
  <pre><code>qbrLegalEntity = qbds.addRange(fieldNum(HcmEmployment, LegalEntity));
  strRangeCondition = '(%1 != %2)';
  qbrLegalEntity.value(strFmt(strRangeCondition, 
                          fieldStr(HcmEmployment, LegalEntity),
                          queryValue("0")));
  </code></pre>
  
  <p>Is it possible to code this range condition?</p>
  
  <p>Thank you.</p>