A
allex
Ошибка при выполнении агента такая - Object variable set not set
Народ подскажите в чем может быть ошибка
Код:
Sub Initialize
Dim db1 As NotesDatabase
Dim db2 As New NotesDatabase ("server", ",basa.nsf")
Dim view As NotesView
'Dim uidoc As NotesUIDocument
Dim doc1 As NotesDocument
Dim session As NotesSession
Set db1 = session.CurrentDatabase
'Set uidoc = session.CurrentDocument
Set doc1 = view.GetFirstDocument
Set view = bd1.Get.View("Predstavlenie")
Set session = NotesSession
If doc1.IsNewDoc Then
While Not (doc1 Is Nothing)
Call doc1.CopyToDatabase( db2 )
Set doc1 = view.GetNextDocument(doc1)
Wend
Print "All OK :-)"
End If
End Sub
Народ подскажите в чем может быть ошибка