Hi,
ich hab mal auf die Schnelle was zusammengebastelt. Ich hoffe es funktioniert.
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Dim szReference As String
Dim szDocID As String
Dim parent As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument
While Not (doc Is Nothing)
Forall r In doc.FolderReferences
If r = "" Then Goto Empty
szReference = r & Chr(10) & szReference
End Forall
If doc.IsResponse Then
szDocId = doc.ParentDocumentUNID
Set parent = db.GetDocumentByUNID(szDocID )
Forall r In parent.FolderReferences
If r = "" Then Goto Empty
szReference = r & Chr(10) & szReference
End Forall
End If
Msgbox "Folder References: " & Chr(10) & Chr(10) &szReference, 64, db.title
Set doc = collection.GetNextDocument(doc) 'Nächstes Dokument
Wend
Exit Sub
Empty:
Msgbox "No References in this document....", 64, db.title
End Sub
Axel