Is there anyway to delete my exports once they are emailed from within access. The code so far is as follows:
Dim stDocName As String
Dim EmailApp, NameSpace, EmailSend As Object
DoCmd.OutputTo acReport, "rescasdir", acFormatRTF, "h:\Resolved.rtf"
DoCmd.OutputTo acReport, "bordir", acFormatRTF, "h:\Border.rtf"
DoCmd.OutputTo acReport, "othagdir", acFormatRTF, "h:\Other.rtf"
Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.getNameSpace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
EmailSend.To = "my name"
EmailSend.Subject = "Court Updates"
EmailSend.Attachments.Add "h:\border.rtf"
EmailSend.Attachments.Add "h:\other.rtf"
EmailSend.Attachments.Add "h:\resolved.rtf"
EmailSend.Display
Set EmailApp = Nothing
Set NameSpace = Nothing
Set EmailSend = Nothing
Dim stDocName As String
Dim EmailApp, NameSpace, EmailSend As Object
DoCmd.OutputTo acReport, "rescasdir", acFormatRTF, "h:\Resolved.rtf"
DoCmd.OutputTo acReport, "bordir", acFormatRTF, "h:\Border.rtf"
DoCmd.OutputTo acReport, "othagdir", acFormatRTF, "h:\Other.rtf"
Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.getNameSpace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
EmailSend.To = "my name"
EmailSend.Subject = "Court Updates"
EmailSend.Attachments.Add "h:\border.rtf"
EmailSend.Attachments.Add "h:\other.rtf"
EmailSend.Attachments.Add "h:\resolved.rtf"
EmailSend.Display
Set EmailApp = Nothing
Set NameSpace = Nothing
Set EmailSend = Nothing