Würde es so machen:
Dim uiws As New NotesUIWorkspace
Dim collection As NotesDocumentCollection
Dim docLoop As NotesDocument
Dim docTemp As NotesDocument
Set collection = Source.Documents
Set docLoop = collection.GetFirstDocument
While Not (docLoop Is Nothing)
Set docTemp = collection.GetNextDocument(docLoop)
If docLoop.IsResponse Then
Call docLoop.Remove( True )
Else
Call docLoop.ReplaceItemValue("Status", "Archiv")
Call doc.Save(True, True)
End If
Set docLoop = docTemp
Wend
continue=False 'Damit das Lösch-Symbol weg ist in der View
Call uiws.ViewRefresh
D.h. im QuerydocDelete-Event wird jedes selektierte Dok durchlaufen.
Über docLoop.IsResponse wird geprüft, ob es ein Antwort-Dokument ist. Wenn ja, dann löschen, wenn nein, dann Status ändern.