Search method
Given selection criteria for a document, returns all documents in a database that meet the criteria.
Defined in
NotesDatabase
Syntax
Set notesDocumentCollection = notesDatabase.Search( formula$, notesDateTime, maxDocs% )
Parameters
formula$
String. A Notes @function formula that defines the selection criteria.
notesDateTime
A cutoff date. The method searches only documents created or modified since the cutoff date. Specify Nothing to indicate no cutoff date.
maxDocs%
Integer. The maximum number of documents you want returned. Specify 0 to receive all matching documents.
Return value
notesDocumentCollection
help On-Line
про macDocs
Это моя тупость, только понял вопрос. По сути не надо использовать этот параметр, лучше задать условия в самой строке запроса.
Один коллега рассказывал: "Что коллекция отбирается по строке, а потом заново отрезается по дате. Двойной обход."
Проверять его слова я тогда не стал, а сейчас не вижу смысла, ошибся так ошибся.
Лично просто использую запрос даты в строке.