Sub UpdateResponseField (docParent As NotesDocument, parentFieldName As String, responseFieldName As String)
Dim docCollection As NotesDocumentCollection
Dim docResponse As NotesDocument
parentValue = docParent.GetItemValue(parentFieldName)
Set docCollection = docParent.Responses
If docCollection.Count <> 0 Then
For i=1 to docCollection.Count
Set docResponse = docCollection.GetNthDocument(i)
If Not docResponse Is Nothing Then
Call docResponse.ReplaceItemValue(responseFieldName, parentValue(0))
Call docResponse.Save(True, False)
End If
Next
End If
End Sub
This was first published in March 2001