B
Bill Reagan
When we converted a database to Access 2003 from 2000, one piece of the
opendatasource code is no longer working.
The code is:
With WordDoc.MailMerge
.MainDocumentType = wdFormLetters
.OpenDataSource Name:="C:\TEST\test.mdb", LinkToSource:=True,
Connection:="TABLE LetterBuffer"
End With
For some reason, the Connection string does not seem to be working. This
code is identical to the code in the 2000 database. No matter what we put in
the " " the database does not appear to look in here. For example, if we have
only one table, the code works fine, no matter what the table name is and no
matter what is in the " " for the connection string. As soon as we have two
tables, and one IS called LetterBuffer, we get a select table dialog box when
the code is run that asks us to select the table, and one of the tables
listed is LetterBuffer. Did this parameter change in 2003 that is not
reflected in the help file? Any insight or help would be appreciated!!
opendatasource code is no longer working.
The code is:
With WordDoc.MailMerge
.MainDocumentType = wdFormLetters
.OpenDataSource Name:="C:\TEST\test.mdb", LinkToSource:=True,
Connection:="TABLE LetterBuffer"
End With
For some reason, the Connection string does not seem to be working. This
code is identical to the code in the 2000 database. No matter what we put in
the " " the database does not appear to look in here. For example, if we have
only one table, the code works fine, no matter what the table name is and no
matter what is in the " " for the connection string. As soon as we have two
tables, and one IS called LetterBuffer, we get a select table dialog box when
the code is run that asks us to select the table, and one of the tables
listed is LetterBuffer. Did this parameter change in 2003 that is not
reflected in the help file? Any insight or help would be appreciated!!