Dim session As NotesSession Dim currDb As NotesDatabase Dim qaParent As NotesDocument Dim prodParent As NotesDocument Dim qaDB As NotesDatabase Dim v As NotesView Dim i As Integer On Error Goto errorHandler Set session = New NotesSession Set currDb = session.CurrentDatabase Set qaDB = session.GetDatabase ( "QAServer/CMA", "somedb.nsf" ) Set prodDb = session.GetDatabase ( "PRODServer/CMA", "somedb.nsf" ) Set v = qaDB.GetView ( "Main" ) v.Refresh v.AutoUpdate = False Set qaParent = v.GetFirstDocument Do Until ( qaParent Is Nothing ) i = i + 1 Print "Processing doc: " & i Set prodParent = qaParent.CopyToDatabase ( prodDb ) Set qaParent = v.GetNextDocument ( qaParent ) Loop Msgbox "Processing complete" End Sub
Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | |||