Hallo, ich möchte eine notescollection machen mit allen Dokumenten,
die die Form="QAB" haben und dnach noch einigen anderen Kriterien entsprechen.
Beim Abfahren des Scriptes im Debugger bleibt aber die notescollection leer...
Woran liegt das?
hier ist der Code
schnipp---------------------------------------------------
Sub Initialize
Dim session As New NotesSession
Dim current As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Dim mailbox As New NotesDatabase("","")
Dim maildoc As NotesDocument
Dim sendto, subject, sendas, message As String
searchFormula$ = {Form = "QAB" }
Set current = session.CurrentDatabase
Set collection = current.Search(searchFormular$, Nothing, 0)
Set doc = collection.GetFirstDocument()
schnapp------------------------------------------------------