Solved

Error - The remote server machine does not exist or is unavailable

Posted on 2006-11-16
2
456 Views
Last Modified: 2012-06-27
Hello - I'm getting this error message in a mail merge I'm doing from Access. It seems to be a common problem; 1st time through, it works fine, then blows up the 2nd time.

I've followed the advice I've found about declaring specific object variables for the Word app & doc, and then closing and setting them to Nothing at the end of the routine, but I'm still getting the error.

This started happening when I added a routine to loop through ActiveDocument.Tables (to set the font, size and column widths). It blows on the 2nd time through on the line:
     For Each tbl in ActiveDocument.Tables

Is there another object variable for the mail merge result that has to be set to empty?

Any help much appreciated

Thanks

Mark
0
Comment
Question by:mlagrange
2 Comments
 
LVL 2

Accepted Solution

by:
Deb8stud earned 500 total points
ID: 17961366
Try decompiling your database.  It sounds like you may have so many variables that are active but out of scope that your database is freaking out.  
http://www.granite.ab.ca/access/decompile.htm
0
 

Author Comment

by:mlagrange
ID: 17984184
Thanks - that could explain a lot of things I'm seeing
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now