well how do you do it in three queries?

Something else that might help is that each record has a sample number (the data in question is drill samples being assayed), and they are almost always in that order. There are a few exceptions... for example if the driller switched to a different sequence in the middle of a drill hole, or if the record I'm looking for is the last sample in the drill hole. But USUALLY they are in the same order as the sample number indicates. Sample number is generally a letter and six numbers but again, there are exceptions.