Runtime error 462: The remote server machine does not exist or is unavailable

J

Jennifer Robertson

Hello all,

I have a module which creates a new message in outlook and attaches a file.
The database is on my c drive, so I am doing any network functions. I get a
runtime error 462 as per the subject line which does not occur all the time.

The line throwing this error is:

set msg = outlook.Application.CreateItem(olMailItem)

I usually hit debug, stop the code, close the vba editor and click the
button (module) again and it works. Sometimes.

Internet search comes up with saying I have to make sure my network
connection is fine, the remote machine is running etc. But I'm not accessing
the network at all with this code.

Any ideas?

Jen
 

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

Top