Hi
I have made q query and I want to use OR in the querybuildRange value. I need to use OR instead of AND.
The Querystring:
SELECT * FROM NCEmailMatrixTmp(NCEmailMatrixTmp_1) WHERE ((JobCode = '')) AND ((ItemId = N'FV47001-00'))
while select documentTypeEmailMatrix
order by Priority
where documentTypeEmailMatrix.DocumentType == _docType
&& documentTypeEmailMatrix.IsDefault == false
{
query = new Query();
qbd = query.addDataSource(TableNum(NCEmailMatrixTmp));
qbr = qbd.addRange(FieldNum(NCEmailMatrixTmp, JobCode));
qbr.value(queryValue(documentTypeEmailMatrix.JobCode));
qbr = qbd.addRange(FieldNum(NCEmailMatrixTmp, ItemId));
qbr.value(queryValue(documentTypeEmailMatrix.ItemId));
qr = new QueryRun(query);
while (qr.next())
{
qr.setRecord(emailMatrixTmp);
return documentTypeEmailMatrix;
}
*This post is locked for comments
I have the same question (0)