Moving last e-mail from inbox programmatically - Error 3704

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using MS Access to conduct operation in MS Outlook.
Operation removes attachments from e-mail, then moves e-mail to new folder.
When the LAST e-mail is moved and error is generated.

Error reads:
An unexpected error has occured
Please note and report the following information
Error Number: 3704
Error Description: Operation is not allowed when the object is closed.

Code is:
For j = nbxcount To 1 Step -1
Set Mailitm = inBox.Items(j)
Mailitm.Move fldr
Next j

Any corrections?

Thank you for your time,

N8
 
Sue,

Thank you for your response. I will adjust accordingly.

Thank you also for directions down the hall, I will seek to make good use of
your directions. I appreciate your many posts which I have read in the past.

N8
 

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

Back
Top