Hello,
I receive a daily rolling 30 day report in Excel format via Outlook. I'd like to figure out a way to append this data into an Access 2007 table automatically.
I've set up an Outlook rule to save the attachment to a directory using the following code:
Public Sub saveAttachtosever(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
Dim saveFolder As String
saveFolder = "X:\MEDIA\Clients\All Client Related\Mediamath Data\Daily Reports 2013"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\" & Format$(itm.CreationTime, "yyyymmdd_hhmmss_") & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub
However, I'm not sure how to then append the this file to my Access table. Any help would be greatly appreciated.
Thanks!
JG
I receive a daily rolling 30 day report in Excel format via Outlook. I'd like to figure out a way to append this data into an Access 2007 table automatically.
I've set up an Outlook rule to save the attachment to a directory using the following code:
Public Sub saveAttachtosever(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
Dim saveFolder As String
saveFolder = "X:\MEDIA\Clients\All Client Related\Mediamath Data\Daily Reports 2013"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\" & Format$(itm.CreationTime, "yyyymmdd_hhmmss_") & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub
However, I'm not sure how to then append the this file to my Access table. Any help would be greatly appreciated.
Thanks!
JG