B
bernie69
Hi,
I have an Access 2003 database. In one of its forms is a pushbutton which
starts a Word mailmerge via VBA automation. It works fine with Access 2007
aand Word 2007. Once I convert the access database to the new 2007 format
(accdb extension), the automation quits working. The odbc driver can't login
and is looking for a non-existing database.
Any ideas?
The code I use and which stalls the prg is just standard:
objWord.MailMerge.OpenDataSource Name:=CurrentDb.Name, _
LinkToSource:=True, _
Connection:="QUERY NameofQuery", _
SubType:=wdMergeSubTypeWord2000
Many thanks
I have an Access 2003 database. In one of its forms is a pushbutton which
starts a Word mailmerge via VBA automation. It works fine with Access 2007
aand Word 2007. Once I convert the access database to the new 2007 format
(accdb extension), the automation quits working. The odbc driver can't login
and is looking for a non-existing database.
Any ideas?
The code I use and which stalls the prg is just standard:
objWord.MailMerge.OpenDataSource Name:=CurrentDb.Name, _
LinkToSource:=True, _
Connection:="QUERY NameofQuery", _
SubType:=wdMergeSubTypeWord2000
Many thanks