K
Katayon
I have a Command that generates an email message as follows:
Private Sub cmdSendOverdue_Click()
Dim strMessage As String 'Body of message
Dim strSubject As String 'Email Subject
Dim strTo As String 'To address
strTo = "TEST"
strSubject = "DSL Overdue Items"
strMessage = "The following items are overdue to the DSL." & vbCrLf & vbCrLf
strMessage = strMessage & "" & qryOverdueItems & vbCrLf & vbCrLf
DoCmd.SendObject acSendNoObject, , acFormatHTML, strTo, , , strSubject,
strMessage, True
End Sub
The issue is, I would like to list the query/table qryOverdueItems, as
attempted in the second 'strMessage' above.
Unfortunetly, this is not working. How can I get the above email message to
display the entire results of the query (basically be able to list an entire
table).
Is this possible?
Thanks in advance for your help.
Private Sub cmdSendOverdue_Click()
Dim strMessage As String 'Body of message
Dim strSubject As String 'Email Subject
Dim strTo As String 'To address
strTo = "TEST"
strSubject = "DSL Overdue Items"
strMessage = "The following items are overdue to the DSL." & vbCrLf & vbCrLf
strMessage = strMessage & "" & qryOverdueItems & vbCrLf & vbCrLf
DoCmd.SendObject acSendNoObject, , acFormatHTML, strTo, , , strSubject,
strMessage, True
End Sub
The issue is, I would like to list the query/table qryOverdueItems, as
attempted in the second 'strMessage' above.
Unfortunetly, this is not working. How can I get the above email message to
display the entire results of the query (basically be able to list an entire
table).
Is this possible?
Thanks in advance for your help.