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

  • Thread starter Thread starter Jennifer Robertson
  • Start date Start date
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
 
Back
Top