Da setze ich noch einen drauf
Wozu einee eigene Funktion für einen EINZEILER
sMonatsName = Format$( <Datum>, "mmmm" )
Dim Session As New NotesSession
Dim db As NotesDatabase
Dim coll As NotesDocumentCollection
Dim loopdoc As NotesDocument
Dim item As NotesItem
dim monatsname as string
dim monatnr as integer
dim ndt as NotesDateTime
set ndt = New NotesDateTime( Now )
call ndt.AdjustMonth(-1)
monatsname = Format$( ndt.LSLocalTime, "mmmm" )
Set db = session.CurrentDatabase
Set coll = db.UnprocessedDocuments
Set loopdoc = coll.GetFirstDocument
While Not(loopdoc Is Nothing)
call loopdoc.ReplaceItemValue( monatsname, loopdoc.counter )
loopdoc.counter = 0
Call loopdoc.Save(True,True,True)
Set loopdoc = coll.GetNextDocument(loopdoc)
Wend
Andreas