hm...eine DateRange evtl?
GetDocumentByKey method
Beispiel
Finds a document based on its column values within a view. You create an array of strings (keys), where each key corresponds to a value in a sorted column in the view. The method returns the first document whose column values match each key in the array.
Defined in
NotesView
Syntax
Set notesDocument = notesView.GetDocumentByKey( keyArray [ , exact ] )
Parameters
keyArray
String, integer, long, single or double value, or array of strings, number, DateTime, or DateRange objects. Each element in the array is compared to a sorted column in the view. The first element in the array is compared to the first sorted column in the view; the second element is compared to the second sorted column; and so on.
exact
Boolean. Optional. Specify True if you want to find an exact match. If you specify False (the default) or omit this parameter, a partial match succeeds.
Return value
notesDocument
The first document in the view whose column values match each of the strings in keyArray.
Usage
For the GetDocumentByKey method to work, you must categorize the first column to have a single-value field.
For non-exact matches, returns only those documents that match the initial characters. For example, "T" matches "Tim".
This method returns only the first document whose column values match the strings you indicate. To locate all matching documents, use GetAllDocumentsByKey, or use this method followed by a GetNextDocument loop. If you use a GetNextDocument loop, you must explicitly check to make sure the next document is a match.