I am sending an email from a form and it almost works the way I want it to. I need to accomplish two more things. Here is an example of what the subject needs to be: 2:00 Report Wednesday March 15th, 2006 I cant get the values into the subject line at all.
I can get the info into the body, but I cant get the date to format as the long date, it only shows as 03/15/2006.
Here is my code, can enyone tell me what I am doing wrong?
Private Sub Command4_Click()
On Error Resume Next
Dim daSubject As String
Dim daBody As String
daSubject = ""
daSubject = daSubject & " " & Time.Value & vbCrLf
daSubject = daSubject & " " & Forms!DispatchDay!Date.Value & vbCrLf
daBody = ""
daBody = daBody & " " & Forms!DispatchDay!Date.Value & vbCrLf
daBody = daBody & " " & Time.Value & vbCrLf
daBody = daBody & " " & Notes.Value & vbCrLf
DoCmd.SendObject acSendNoObject, , , "Email1", "Email 2", , "Report", daBody
End Sub
I can get the info into the body, but I cant get the date to format as the long date, it only shows as 03/15/2006.
Here is my code, can enyone tell me what I am doing wrong?
Private Sub Command4_Click()
On Error Resume Next
Dim daSubject As String
Dim daBody As String
daSubject = ""
daSubject = daSubject & " " & Time.Value & vbCrLf
daSubject = daSubject & " " & Forms!DispatchDay!Date.Value & vbCrLf
daBody = ""
daBody = daBody & " " & Forms!DispatchDay!Date.Value & vbCrLf
daBody = daBody & " " & Time.Value & vbCrLf
daBody = daBody & " " & Notes.Value & vbCrLf
DoCmd.SendObject acSendNoObject, , , "Email1", "Email 2", , "Report", daBody
End Sub