Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim collection As NotesDocumentCollection
Dim readersItem As NotesItem
Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)
tmpReader = doc.groups(0)
If tmpReader = "" Then
Set readersItem = New NotesItem(doc, "groups", "[FDG]", READERS)
Call doc.Save(True,True)
End If
Set doc = collection.GetNextDocument(doc)
Wend
End Sub
|