I’m trying to Automate sending some reports from Access. I have all of the Outlook side of things working fine except for the attachment itself
The current version uses the following with respect to the attachment itself:
Dim attachmentPath as Variant (It didn’t like strings either)
AttachmentPath = “C:Documents and SettingsPeter NikiforukDesktopCCGGrptArtistStatement.pdf”
Set objOutlookAttach = .Attachments.Add(AttachmentPath)
I have recieved a number of errors depending on whether I specify a type in the attachments.add. With no type specificed I’m getting error 13 Type mismatch. No matter what I try, Outlook doesn’t like any path. I even tried putting a document in the root directory (e.g. “C:xyz.txt”) and outlook still couldn’t find the document to attach.
This is currently running as a sub in the on click event of a button.