Open an Attachment



We are using Outlook oft forms to process requests. The forms are sent
to a mailbox where the data is extracted to an Access database via VBA.
Generally this works and there is no issue with most of the forms.

Here is my issue:
Sometimes the oft documents are sent as attachments. How do I:
Read the attachment (oft form), or
move the attachment to a folder.

I need to get the data from these forms into the database. I can
manually open each of the attachments and move the form into a folder
where I can process normally.



You'll have to save the attachment to a file before you can get a full handle
to the item in the Outlook Object Model. Use CreateItemFromTemplate and pass
the file path to retrieve it.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question