Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2004

Tip: Looking for answers? Try searching our database.

Access-Word Automation Problem Under Office 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JP - 15 Jan 2004 02:41 GMT
I have an Access application that drives data into
FormFields in Word docs.  The word docs are protected
(Tools|Protect Document).  The basic code is
below:

   Dim wordApp As Word.Application
   Dim worddoc As Word.Document

   Set wordApp = CreateObject("Word.Application")
   Set worddoc = wordApp.Documents.Open(FOLDER_NAME &
sWordDocName, False, True, False, , , True, , , , , False)

   worddoc.FormFields("Field1").Result = "abcdef"

The application works fine under Access 2000/Win2K/Office
2K, Access 2002/Win2K/Office 2002, Access 2000/XP/Office
2K, Access 2002/XP/Office 2002 but fails under Office 2003
(Access 2003/XP/Office 2003.

The error code is -2147417851 and the message is "Method
result of object formfield failed".  The error occurs when
executing the .result command.

Anybody have any thoughts/experience with this?  I can't
find anything in the KB yet.

Thanks
Cindy M  -WordMVP- - 15 Jan 2004 18:33 GMT
Replied to duplicate question in one of the
office.developer groups

   Cindy Meister
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.