M
Mary
I'm using the following code to send an email on the after update event of a
form. It's working, but I'd like to include a second field in the Message
Text and insert a paragraph or new line if possible.
Private Sub Status_AfterUpdate()
Dim LResponse As Integer
LResponse = MsgBox("Do you wish to continue?", vbYesNo, "Continue")
If LResponse = vbYes Then
DoCmd.SendObject acSendNoObject, , , "(e-mail address removed)", , , "Completed
Status Report", Forms!Maintain_Status!Field1 & "; " &
Forms!Maintain_Status!Field2, No
Else
Exit Sub
End If
End Sub
It works fine, but doesn't display the second field, just the first field
followed by the semi-colon separator.
Can you tell me what I'm doing wrong?
Thanks!
Mary
form. It's working, but I'd like to include a second field in the Message
Text and insert a paragraph or new line if possible.
Private Sub Status_AfterUpdate()
Dim LResponse As Integer
LResponse = MsgBox("Do you wish to continue?", vbYesNo, "Continue")
If LResponse = vbYes Then
DoCmd.SendObject acSendNoObject, , , "(e-mail address removed)", , , "Completed
Status Report", Forms!Maintain_Status!Field1 & "; " &
Forms!Maintain_Status!Field2, No
Else
Exit Sub
End If
End Sub
It works fine, but doesn't display the second field, just the first field
followed by the semi-colon separator.
Can you tell me what I'm doing wrong?
Thanks!
Mary