Hi and thanks for your help,
I am trying to use a record selection query to filter out any record lines where {ITEMMAST.USER_FIELD1} = "ACTUAL" -- This is not working. I know it's not working because I have a formula field that is picking up values that are "" <-- these are not null
Here is my record selection query:
if isnull({MMDIST.DOC_TYPE}) Then
(
{PURCHORDER.PO_DATE} in dateserial(year(currentdate),01,01) to dateserial(year(currentdate),12,31) and
{PURCHORDER.PO_DATE} >= cdate({ITEMMAST.USER_FIELD2}) and
{ITEMMAST.USER_FIELD1} = "ACTUAL" and
{PURCHORDER.CANCELLED_FL} = "N" and
{POLINE.COMPANY} = 1000 and
{POLINE.QUANTITY} <> {POLINE.CXL_QTY} and
{PURCHORDER.RELEASED_FL} = "Y"
)
Else
(
{PURCHORDER.PO_DATE} in dateserial(year(currentdate),01,01) to dateserial(year(currentdate),12,31) and
{PURCHORDER.PO_DATE} >= cdate({ITEMMAST.USER_FIELD2}) and
{ITEMMAST.USER_FIELD1} = "ACTUAL" and
{PURCHORDER.CANCELLED_FL} = "N" and
{POLINE.COMPANY} = 1000 and
{POLINE.QUANTITY} <> {POLINE.CXL_QTY} and
{PURCHORDER.RELEASED_FL} = "Y" and
{MMDIST.DOC_TYPE} in ["PT","PA"]
)
Thanks,
Will
I am trying to use a record selection query to filter out any record lines where {ITEMMAST.USER_FIELD1} = "ACTUAL" -- This is not working. I know it's not working because I have a formula field that is picking up values that are "" <-- these are not null
Here is my record selection query:
if isnull({MMDIST.DOC_TYPE}) Then
(
{PURCHORDER.PO_DATE} in dateserial(year(currentdate),01,01) to dateserial(year(currentdate),12,31) and
{PURCHORDER.PO_DATE} >= cdate({ITEMMAST.USER_FIELD2}) and
{ITEMMAST.USER_FIELD1} = "ACTUAL" and
{PURCHORDER.CANCELLED_FL} = "N" and
{POLINE.COMPANY} = 1000 and
{POLINE.QUANTITY} <> {POLINE.CXL_QTY} and
{PURCHORDER.RELEASED_FL} = "Y"
)
Else
(
{PURCHORDER.PO_DATE} in dateserial(year(currentdate),01,01) to dateserial(year(currentdate),12,31) and
{PURCHORDER.PO_DATE} >= cdate({ITEMMAST.USER_FIELD2}) and
{ITEMMAST.USER_FIELD1} = "ACTUAL" and
{PURCHORDER.CANCELLED_FL} = "N" and
{POLINE.COMPANY} = 1000 and
{POLINE.QUANTITY} <> {POLINE.CXL_QTY} and
{PURCHORDER.RELEASED_FL} = "Y" and
{MMDIST.DOC_TYPE} in ["PT","PA"]
)
Thanks,
Will