S
SHIPP
I have the following code in Access 97:
Dim objWord As Word.Application
Set objWord = GetObject("\\plbtpr02\data\CorpSourcing\Shared\
AgreementFront\signature.doc", "Word.Document")
objWord.Application.Visible = True
objWord.MailMerge.Execute
The document has been set up to utilize a query in the database I am
currently in as its' source. When I try to compile I get an error at:
objWord.MailMerge.Execute
The error is:
Method or data member not found.
In my references I have the following checked off in the following order:
Visual Basic For Applications
Microsoft Access 8.0 Object Library
Microsoft DAO 3.51 Object Library
Microsoft Word 8.0 Object Library
Microsoft Excel 8.0 Object Library
Microsoft Office 8.0 Object Library
Microsoft Visual Basic for Applications Ext...
The message indicates its' a reference but they all look good to me. Any
ideas? I got this bit of code from Microsoft Q159328. Any help would be
greatly appreciated.
Dim objWord As Word.Application
Set objWord = GetObject("\\plbtpr02\data\CorpSourcing\Shared\
AgreementFront\signature.doc", "Word.Document")
objWord.Application.Visible = True
objWord.MailMerge.Execute
The document has been set up to utilize a query in the database I am
currently in as its' source. When I try to compile I get an error at:
objWord.MailMerge.Execute
The error is:
Method or data member not found.
In my references I have the following checked off in the following order:
Visual Basic For Applications
Microsoft Access 8.0 Object Library
Microsoft DAO 3.51 Object Library
Microsoft Word 8.0 Object Library
Microsoft Excel 8.0 Object Library
Microsoft Office 8.0 Object Library
Microsoft Visual Basic for Applications Ext...
The message indicates its' a reference but they all look good to me. Any
ideas? I got this bit of code from Microsoft Q159328. Any help would be
greatly appreciated.