How everyone, I wrote this script in an agent to create new documents but I can’t seem to see the document that it was supposed to create. Despite setting the doc.form value. I am doing something wrong. Or is their a better way. This was mostly taken from the lotus notes help.
Sub Initialize
Dim mydate As Variant
mydate = Inputbox("Enter the date you wish to view (eg 28/12/2005) ?")
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = "LoadSche"
doc.date = mydate
Call doc.Save( False, False )
End Sub