> I created an Access 2000 database that opens up Word 2000 documents for
> merging. Within the Word 2000 document version is the following code.
[quoted text clipped - 3 lines]
> Please help! Thanks.
>
Could you comment out "On Error Resume Next", run your code, and tell us
on which line it's failing? Please also quote the exact message.
Or is the problem occurring before the code even executes?
Based on experience, I'm guessing you're running into this issue:
http://support.microsoft.com?kbid=825765
When this security mechanism is activated (no Registry key to turn it
off), opening a main merge document via code automatically disconnects
the data source. You need to reconnect the data source using the
OpenDataSource method (or set the Registry key).
> Private Sub Document_Open()
>
[quoted text clipped - 49 lines]
>
> End Sub
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
amrnorman@cox.net - 28 Jul 2006 19:01 GMT
Cindy M -WordMVP- wrote:
> > I created an Access 2000 database that opens up Word 2000 documents for
> > merging. Within the Word 2000 document version is the following code.
[quoted text clipped - 77 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy,
The SQLSecurityCheck in regedit resolved my issue. Thank you!