I found some VBA code to send an email with a report as an attachement. I am getting a run-time error 2024.
The report snapshot was not created because you do not have enough free disk space for temporary files.
What am I missing? Here is the code.
DoCmd.OutputTo acOutputReport, "Issues", "Snapshot Format", "C:\TEMP", False
Set outl = CreateObject("Outlook.Application")
Set mail = outl.CreateItem(olMailItem)
mail.To = "scshumate@bbandt.com"
mail.Subject = "Budgets"
mail.attachments.Add "C:\TEMP"
mail.display
SendKeys "^{ENTER}"
Set outl = Nothing
Set mail = Nothing
The report snapshot was not created because you do not have enough free disk space for temporary files.
What am I missing? Here is the code.
DoCmd.OutputTo acOutputReport, "Issues", "Snapshot Format", "C:\TEMP", False
Set outl = CreateObject("Outlook.Application")
Set mail = outl.CreateItem(olMailItem)
mail.To = "scshumate@bbandt.com"
mail.Subject = "Budgets"
mail.attachments.Add "C:\TEMP"
mail.display
SendKeys "^{ENTER}"
Set outl = Nothing
Set mail = Nothing