A
Akupaka
я бы так предложил:
Код:
Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Set db = Source.Database
Dim doc2 As notesDocument
Set collection = Source.Documents
Set doc = collection.GetFirstDocument
While Not(doc Is Nothing)
Set doc2 = collection.GetNextDocument(doc)
If doc.getitemvalue("Form")(0) = "Spr" Then
Call collection.DeleteDocument(doc)
End If
Set doc = doc2
Wend
' просто так, в принципе
continue = collection.Count > 0
End Sub