N
Nick 'The Database Guy'
On further research I have found that the code falls over on this
line:
ActiveDocument.MailMerge.OpenDataSource Name:=CurrentDb.Name,
ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True,
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="",
WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False,
Format:=wdOpenFormatAuto, Connection:= "Provider=Microsoft.Jet.OLEDB.
4.0;Password="""";User ID=Admin;Data Source=currentdb.name;Mode=
Read;Extended Properties=""""; Jet OLEDB:System database="""";Jet
OLEDB:Registry Path="""";Jet OLEDBatabase Password="""";Jet
OLEDB:Engine", SQLStatement:="SELECT * FROM `qrySource`",
SQLStatement1:="", SubType:=wdMergeSubTypeAccess
It works the first time but the second time I run this procedure I get
the error:
Error number : 462
Error description: The remote server machine does not exist or is
unavaiable.
Nick
line:
ActiveDocument.MailMerge.OpenDataSource Name:=CurrentDb.Name,
ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True,
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="",
WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False,
Format:=wdOpenFormatAuto, Connection:= "Provider=Microsoft.Jet.OLEDB.
4.0;Password="""";User ID=Admin;Data Source=currentdb.name;Mode=
Read;Extended Properties=""""; Jet OLEDB:System database="""";Jet
OLEDB:Registry Path="""";Jet OLEDBatabase Password="""";Jet
OLEDB:Engine", SQLStatement:="SELECT * FROM `qrySource`",
SQLStatement1:="", SubType:=wdMergeSubTypeAccess
It works the first time but the second time I run this procedure I get
the error:
Error number : 462
Error description: The remote server machine does not exist or is
unavaiable.
Nick