You can write a simple SQL statement that will bring only the 20, 30, etc. first records, and than write Visual Basic code for the export:
Me.RecordSource= "SELECT TOP 30 * FROM Customers ORDER BY CustomerID"
DoCmd.OutputTo acOutputReport, "FormName", acFormatPDF, "pdfPath"