Die Lösung von Ullrich läuft perfekt:
Hier damit alles was davon haben.
Dim s As New NotesSession
Dim db As NotesDatabase
Dim v As NotesView
Dim doc As NotesDocument
Dim collection As NotesDocumentCollection
Dim var As Integer
Dim vnav As NotesViewNavigator
Set db = s.CurrentDatabase
Set v = db.GetView("Notes-Bearbeiter / Ausgeliefert")
Set doc = v.GetFirstDocument
While Not(doc Is Nothing)
If doc.IsResponse Then
Goto ende
Else
Set vnav = v.CreateViewNavFromDescendants(doc)
var = vnav.count
Call doc.replaceitemvalue("Flag",var)
Call doc.Save(True, True)
End If
ende:
Set doc = v.GetNextDocument(doc)
Wend
Super
Gruss
Andreas