G
Guest
Hi,
I have Access 2003 database that prints a report to to PDF and then mails it
out. That is working just fine.
Now what I need is to be able to delete the once the email has been sent.
I was given this code, but I get an error message:
Private Sub Deletefile()
' This will delete the pdf file that is created for the email.
Dim fso As FileSystemObject 'Set a reference to
C:/Windows/System32/scrrun.dll
fso.Deletefile "H:/MYDOCS/rpt_Complaint_EmailPDF", True
End Sub
error:
91 variable or With block variable not set.
Any help would be appreciated.
Thanks!
I have Access 2003 database that prints a report to to PDF and then mails it
out. That is working just fine.
Now what I need is to be able to delete the once the email has been sent.
I was given this code, but I get an error message:
Private Sub Deletefile()
' This will delete the pdf file that is created for the email.
Dim fso As FileSystemObject 'Set a reference to
C:/Windows/System32/scrrun.dll
fso.Deletefile "H:/MYDOCS/rpt_Complaint_EmailPDF", True
End Sub
error:
91 variable or With block variable not set.
Any help would be appreciated.
Thanks!