I wrote a simple script on an agent to copy documents which is before 2000,10,12 from current database to the new database
See the script:
Dim archiveDb As New NotesDatabase("server name","database.nsf "
Dim doc As NotesDocument
If (doc.Created < Datenumber( 2000,10,12)) Then
Call doc.CopyToDatabase(archiveDb)
End If
When I run it. The error message prompt out"Object variable not set". What should I do?
Thank you for your help! [sig][/sig]
See the script:
Dim archiveDb As New NotesDatabase("server name","database.nsf "
Dim doc As NotesDocument
If (doc.Created < Datenumber( 2000,10,12)) Then
Call doc.CopyToDatabase(archiveDb)
End If
When I run it. The error message prompt out"Object variable not set". What should I do?
Thank you for your help! [sig][/sig]