I am trying to run code that copies the current document to another database, using a form that is located in both DB’s. The document copies ok, but it does not sopy the field info. Here is the code that I am using:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim testdb As New NotesDatabase ( "", "test1.nsf")
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.form = "Test"
Call doc.Save (False, True)
Call doc.CopyToDatabase( testdb )
End Sub
Can someone please help!! Also, is there a way to delete and close the document after the script as ran? Thanks in advance.