I don't think I did a good job of explaining. &Max=1 will return only 1 record. I still need to have all records pulled. Inside the query I have a calculation being done in an assign node. If for the current record the result of the calculation is the desired value I would like to stop the query. If the desired value is not found I would like it to continue on through the remaining records until it is found or not found at all. I'm thinking it would save on system resources if not all records needed to be read through. Some invioces have hundreds of lines and if the 5th record (line) is the correct one it would save on a lot of processing.