I am trying to query PO lines with the CNCode field set to "Bill Only". When I query PurchaseOrderLine I can include that field in my query and I see lines where that field displays in ISD as "Bill Only". I suspect its actually a numeric field so its really stored as "3" or something like that. At any rate, if I try to query that field I receive this error:
Error Encountered: The range you have specified is invalid. The headers must remain in the same row and the resulting table must overlap the original table. the table must contain a header row, and at least one row of data. Please specify a valid table.
I am only pulling the PurchaseOrderLine table and I included several fields (company, purchaseorder, purchaseorderline, etc, and cncode). the ONLY criteria I set is CNCode = "Bill Only". I've also tried CNCode Begins with B, CNCode <>"", CNCode = 3, etc. No matter how I try to query that field I get the error I showed above. I can query this table other ways, and include that field in the results and then filter it. However, what I'm trying to find is any open PO that has Bill Only on the line.
I am also getting that error if I try to pull all PO's where Closed = No, or ClosedDate > [today]....I queried this table by pulling a specific vendor that I know has open Bill Only lines and it worked fine by only pulling the vendor #, then filtering. So I know the program itself is working but querying these fields is getting me nothing.