A
AllyB
All,
Once again I'm turning to the world of experts! I have a database that
tracks all our current projects. As a new project is initiated, I want to
have a form completed with the critical information and have it sent to a
central person for entry into the database. I have the form, I'm able to
complete it and send it in email but the email itself does not close
automatically. I thought by using the "False" option at the end of the
docmd.sendobject command, it would force sending of the email without the
email client (Lotus Notes, in this case) opening up.
I've attached the code below:
Private Sub cmdSubmitNewProject_Click()
Dim strSendToEmail As String
Dim strFormName As String
Dim strSubLine As String
Dim strBodyText As String
strSendToEmail = "(e-mail address removed)"
strFormName = "InitialProjectData"
strSubLine = "A new project request has been submitted"
strBodyText = "A new project request form has been completed and submitted"
DoCmd.SendObject acSendForm, strFormName, acFormatTXT, strSendToEmail, ,
, strSubLine, , False
End Sub
I'm not sure if it's because I'm using Notes, or if it's something in my
code. Any and all help, as always, very much appreciated!
Oh, and it's Access 2003, SP3 with Lotus Notes 7.0.1
Once again I'm turning to the world of experts! I have a database that
tracks all our current projects. As a new project is initiated, I want to
have a form completed with the critical information and have it sent to a
central person for entry into the database. I have the form, I'm able to
complete it and send it in email but the email itself does not close
automatically. I thought by using the "False" option at the end of the
docmd.sendobject command, it would force sending of the email without the
email client (Lotus Notes, in this case) opening up.
I've attached the code below:
Private Sub cmdSubmitNewProject_Click()
Dim strSendToEmail As String
Dim strFormName As String
Dim strSubLine As String
Dim strBodyText As String
strSendToEmail = "(e-mail address removed)"
strFormName = "InitialProjectData"
strSubLine = "A new project request has been submitted"
strBodyText = "A new project request form has been completed and submitted"
DoCmd.SendObject acSendForm, strFormName, acFormatTXT, strSendToEmail, ,
, strSubLine, , False
End Sub
I'm not sure if it's because I'm using Notes, or if it's something in my
code. Any and all help, as always, very much appreciated!
Oh, and it's Access 2003, SP3 with Lotus Notes 7.0.1