ok, als letztes fuer heute:
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim uiws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim docCur As NotesDocument
Dim docNext As Notesdocument
Dim docTemp As Notesdocument
Dim dc As NotesDocumentCollection
Dim qty As Variant
Dim ItemNoCur As Variant
Dim ItemNoNext As Variant
Set db = session.CurrentDatabase
Set dc = db.UnprocessedDocuments
Set docNext = dc.GetFirstDocument
Set uidoc = uiws.CurrentDocument
Set docCur = uidoc.Document
qty = docCur.GetItemValue("Quantity")
ItemNoCur = docCur.GetItemValue("ItemNo")
Do While Not(docNext Is Nothing)
ItemNoNext = docNext.GetItemValue("ItemNo")
If (ItemNoNext = ItemNoCurrent) Then
docNext.Quantity = qty
Call docNext.Save(True,True)
'hier noch refreshen
End If
Set docNext = dc.GetNextDocument(docNext)
Loop
End Sub
Die While Schleife tuts nicht, d.h. die ist von Anfang an auf false....was mache ich falsch....?