Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Time Errorr 462

Status
Not open for further replies.

TimTDP

Technical User
Feb 15, 2004
373
ZA
I am doing amail merge between Access 2000 & Word 2000, using ADO
Every now and agian I get a run time error 462 - The remote server machine does not exist or is unavailble.

If I stop the code, close Word and run the code agian it works - so I don't think it is the code.

What else causes this error, and how can I fix it?
 
If the code is in Access, then it is probably the code. You are most likely using unqualified references to Word objects from Access.

This article is about Excel, but same applies here Excel automation fails second time code runs

Every object, property and method needs to be qualified through relevant object variables.

You might try searching the this forum and the Access fora for Word Automation code (or the 462 error), where you should find similar, both for Word, but perhaps more for Excel. The methods of resolving these issues, hovewer, are often quite similar. Posting your actual code, too, perhaps, if you can't get it to work ...

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top