OrbitMascot
Programmer
I am working on a database that automatically extracts emails from Outlook. The database extract the emails one at a time. I then would like the database to automatically move the email (that it extracted into Access). Is there a way to send an email from the inbox of Outlook to the deleted folder, one at a time?
Here is the current code that I am using to move all the emails to the deleted folder
Dim myDestFolder As Outlook.MAPIFolder
Set myDestFolder = molNameSpace.GetDefaultFolder(olFolderDeletedItems)
On Error Resume Next
molMail.Move myDestFolder
On Error GoTo 0
Am I on the right track? Any information would be greatly appreciated. Thanks.
Here is the current code that I am using to move all the emails to the deleted folder
Dim myDestFolder As Outlook.MAPIFolder
Set myDestFolder = molNameSpace.GetDefaultFolder(olFolderDeletedItems)
On Error Resume Next
molMail.Move myDestFolder
On Error GoTo 0
Am I on the right track? Any information would be greatly appreciated. Thanks.