Here is my problem. I am trying to create a scheduled agent for a user that sends a memo monthly. The memo is based on stationery that the user has saved in Tools>Stationery. I can get the email to send but when I open the email I get a messagebox saying, “A stored form can not contain computed subforms”. I get four of these messageboxes and then the email opens. What am I doing wrong? Do I need to set a field to something? My code is below if that helps any.
Dim session As New NotesSession
Dim dbCurrent As NotesDatabase
Dim view As NotesView
Dim docCurrent As NotesDocument
Dim docNew As NotesDocument
Set dbCurrent = session.CurrentDatabase
Set view = dbCurrent.GetView(“(Stationery)”)
Set docNew = New NotesDocument (dbCurrent)
'Get the document in the view
Set docCurrent = view.GetFirstDocument
'Create a new document
docNew.Form = “Memo”
docNew.SendTo = docCurrent.EnterSendTo
'Send the email
Call docNew.Send( True )