Subject: Update field on responses (to responses) once
This code agent for you
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.AllDocuments
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)
If Not doc.IsResponse Then Call
Update_Response(doc)
Set doc = collection.GetNextDocument(doc)
Wend
End Sub
Sub Update_Response(doc As NotesDocument)
Dim dc_response As NotesDocumentCollection
Dim response As NotesDocument
Set dc_response=doc.Responses
If dc_response.Count>0 Then
Set response = dc_response.GetFirstDocument
While Not response Is Nothing
Call response.ReplaceItemValue("ReaderList",doc.ReaderList)
Call response.Save(True,True)
Call Update_Response(response)
Set response =dc_response.GetNextDocument(response)
Wend
End If