Option Public
Option Declare
Sub Initialize
Dim xSession As New NotesSession
Dim xView As NotesView
Dim vc As NotesViewEntryCollection
Dim ve As NotesViewEntry
Dim xDb As NotesDatabase
Dim xDoc As NotesDocument
Dim xNow As New NotesDateTime("")
xNow.LSLocalTime = Now
Set xDb = xSession.CurrentDatabase
Set xView = xDb.GetView("LookupDateState")
'----Feld DateState Wert zuweisen
'collection generieren
Set vc = xView.AllEntries
If Not( vc Is Nothing) Then
If vc.Count > 0 Then
Set ve = vc.GetFirstEntry()
Set xDoc = ve.Document
While Not( xDoc Is Nothing)
'dein code normal auf dem xDoc
Set ve = vc.GetNextEntry( ve )
'hier muesste vielleicht noch ein check kommen, ob ein next entry gefunden wurde
Set doc = ve.Document
Wend
Else
End If
Else
End If
End Sub
Ist so auf die schnelle geschrieben. Koennte kleine Fehler drin haben.