I need help! I have to send out access report as Excel file on the 15th of every month to several users from my access application automatically without human intervention.
My plan is to create a VBA code and then create a shortcut for this code and place it on the PC, then I'll use Windows' Scheduler to run it automatically.
Please advise whether there is other better way to achieve what I want. My trial VBA code as shown below doesn't work as nothing happened when I try to run it.
---------------------------------
Sub AutoUsageBilling()
Dim stDocName As String
stDocName = "rptAutoUsage"
DoCmd.SendObject acSendReport, stDocName, acFormatXLS, "myemail@myco.com", , , "Monthly Usage Billing", , False
End Sub
---------------------------------
Thanks...
My plan is to create a VBA code and then create a shortcut for this code and place it on the PC, then I'll use Windows' Scheduler to run it automatically.
Please advise whether there is other better way to achieve what I want. My trial VBA code as shown below doesn't work as nothing happened when I try to run it.
---------------------------------
Sub AutoUsageBilling()
Dim stDocName As String
stDocName = "rptAutoUsage"
DoCmd.SendObject acSendReport, stDocName, acFormatXLS, "myemail@myco.com", , , "Monthly Usage Billing", , False
End Sub
---------------------------------
Thanks...