Im exploring running query and sending emails on a scheduled basis to select recipients. Does anyone have experience with this? Is it difficult? Current procedure is to run it with a button. Looking forward to feedback.
Private Sub Command38_Click()
' acFormatHTML, acFormatRTF, acFormatSNP, acFormatTXT, acFormatXLS
' acFormatXLSB, acFormatXLSX, acFormatXPS, acFormatPDF
On Error Resume Next
DoCmd.SendObject acSendTable, "tblPlanTypes", acFormatXLS, , , , "Test", _
"Customers table attached", True
If Err <> 0 Then
MsgBox Err.Description, vbInformation, "Data Not Sent"
End If
End Sub
Private Sub Command38_Click()
' acFormatHTML, acFormatRTF, acFormatSNP, acFormatTXT, acFormatXLS
' acFormatXLSB, acFormatXLSX, acFormatXPS, acFormatPDF
On Error Resume Next
DoCmd.SendObject acSendTable, "tblPlanTypes", acFormatXLS, , , , "Test", _
"Customers table attached", True
If Err <> 0 Then
MsgBox Err.Description, vbInformation, "Data Not Sent"
End If
End Sub