Here's the documentation on the Search method:
Set notesDocumentCollection = notesDatabase.Search( formula$, notesDateTime, maxDocs% )
String. A Notes @function formula that defines the selection criteria.
A cutoff date. The method searches only documents created or modified since the cutoff date. Specify Nothing to indicate no cutoff date.
Integer. The maximum number of documents you want returned. Specify 0 to receive all matching documents.
The documentation on maxDocs is wrong, and IBM has been aware of the issue since Notes 4.5.
Do Quality control much?