Hi,
Currently I have a rule within Outlook to move mails meeting certain criteria to a specific folder and display a msgbox confirming that a new mail (which contains a report in text file format) has been received. I then run some code within Access which downloads the text file attachment, converts it to Excel format and then imports the data into a table. What I would like to do is bypass this step and have the code automatically run when the mail is received. So basically test to see if a current session of Access is open, or if not open one, and then run the macro. I will probably include an If statement based on the result of a displayed msgbox to give the user discretion as to whether or not to import the file. I know that there is a runcode option within Outlooks rule options, I'm just unsure of the specfic code to use in Outlook to achieve my aim. Any advice would be greatly appreciated.
Regards,
B666.
Currently I have a rule within Outlook to move mails meeting certain criteria to a specific folder and display a msgbox confirming that a new mail (which contains a report in text file format) has been received. I then run some code within Access which downloads the text file attachment, converts it to Excel format and then imports the data into a table. What I would like to do is bypass this step and have the code automatically run when the mail is received. So basically test to see if a current session of Access is open, or if not open one, and then run the macro. I will probably include an If statement based on the result of a displayed msgbox to give the user discretion as to whether or not to import the file. I know that there is a runcode option within Outlooks rule options, I'm just unsure of the specfic code to use in Outlook to achieve my aim. Any advice would be greatly appreciated.
Regards,
B666.