Exporting Part Operations from BAQ (Business Activity Query)

Hello.

I'm new to Vantage and was wondering if anyone know how to export Part
Operations performed on certain part numbers. I wrote a query but it
does not work for all part numbers (it works for some) which is
puzzling. My code:

for each Part Where Part.Company = cur-comp
and Part.PartNum = '12345-6789-012' no-lock,
each PartOpr Where PartOpr.Company = Part.Company
and PartOpr.PartNum = Part.PartNum no-lock:


Any ideas would be appreciated.

Tom.