I am looking for a way to have Access retrieve email from an Office 365 mailbox and append the results to a table, then clear the mailbox. I know this can be done by linking to Outlook, but I would prefer a direct download using vba. Any thoughts?
Is Outlook installed? Access VBA can automate Outlook in its entirety so that Outlook doesn't even become visible. Conceivably you xouls create an Exchange Web Services app that you can shell to, instead.
Woof, indeed!
It just isn't that important to me!!
We are trying to provide email functionality to a tool we built, whereby the user creates and action that sends an email from Access which, if the user responds to with the word Yes or No in the reply, Access takes action.
I have done this before using Sharepoint, but Office 365 does not allow you to create an email address for a list, so this isn't an option. Hence the wanting to grab emails from the server and dump them to a table. We set up an account for the replies and grab the responses by a reference number in the subject line and run a query against the updated table.
That said, I don't see me going through all of that just for the "cool" factor it affords!
It's really not all that hard. I haven't done this specifically, but have used VBA to talk to web sites (CC processing) and it's very straight forward.
You just set a reference to the XML doc lib, and then Get/Post. So for Office 365, you'd do something like:
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
http://www.fmsinc.com/microsoftaccess/Email/linked/index.htm
Is that functionality available with 365?