Call doc.Close Problem - Illegal use of PROPERTY

Please help me with this problem.
I want to close my response form (from were I am sending the e-mail) immediately after sending it.
I got an error: Illegal use of PROPERTY with the
Call doc.Close

Could you please tell me how to close the response form and come back to the parent form?

I am posting with 125 points and I will double it if I get a prompt correct answer.

Many thanks in advance!

Sub Click(Source As Button)
      Print "Submitting mail..."
      Dim ws As New notesuiworkspace
      Dim uidoc As notesuidocument
      Dim doc As notesdocument
      Dim parentDoc As NotesDocument
      Dim session As New notessession
      Dim db As notesdatabase
      Dim maildoc As notesdocument
      Dim Body As NotesRichTextItem
      Set db=session.currentdatabase
      Set uidoc=ws.currentdocument
      Set doc=uidoc.document
      Set parentDoc = GetParentDocument( doc)
      Set maildoc = New NotesDocument(db)
      Set Body=New NotesRichTextItem(maildoc,"Body")
      doc.EMAIL_DATE = Now()
      Call doc.Save( False, False )
      Call ws.ViewRefresh
      maildoc.Form = "Memo"
      maildoc.SendTo = doc.EMAIL_SENDTO
      maildoc.CopyTo = doc.EMAIL_COPYTO
      maildoc.BlindCopyTo = doc.EMAIL_BCC
      maildoc.Subject = doc.EMAIL_SUBJECT
      message1="Click here to open the form=========>>"
      message2="(You may delete this after review.)"
      Call Body.AppendText(doc.EMAIL_MESSAGE(0))
      Call Body.AddNewLine(2)
      Call Body.AppendText(message1)
      Call Body.AppendDocLink(parentDoc ,"Please click this link to open the document")
      Call Body.AddNewLine(2)
      Call Body.AppendText(message2)
      Call maildoc.Send( False, Recipient )
      Call doc.Close
End Sub
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

call uidoc.close

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
call doc.close(true)
what happened? Did it solved?
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

ZopiloteAuthor Commented:
Hi again,
No, it does not work. It gives the same error.
ZopiloteAuthor Commented:
Actually the first answer works

but, it ask the confirmation Do you want to save it?

I do not want to save the e-mail document?

What can I do?

ZopiloteAuthor Commented:
I solved the problem.

I changed the line:
   Call doc.Save( False, False )
   Call uidoc.Save

I thank you again for your prompt and correct answers.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.