Talk About Network

Google





Software > Access External data > Re: Word templa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 10894 of 11376
Post > Topic >>

Re: Word template merge from Access

by "pietlinden@[EMAIL PROTECTED] " <pietlinden@[EMAIL PROTECTED] > Aug 6, 2008 at 01:20 PM

On Aug 6, 2:00=A0pm, Carol Grismore
<CarolGrism...@[EMAIL PROTECTED]
> wrote:
> Thank you for your suggestion!
>
> I appreciate (and steal) others' code, and I'm sure this works just
great=
.. =A0
> Actually I think I already have it.
>
> What I'm really trying to find out, though, is how to work the
TransferTe=
xt
> command -- or that it doesn't work, and maybe why.
>
> My bad for not making that clear in my first post.
>
> Thanks again!
> --
> Carol
>
> "pietlin...@[EMAIL PROTECTED]
" wrote:
> > On Aug 6, 12:45 pm, Carol Grismore
> > <CarolGrism...@[EMAIL PROTECTED]
> wrote:
> > > I'm trying to run a very simple TransferText to put data from an
Acce=
ss query
> > > into a Word template. =A0I get the message, "Cannot update.
=A0Databa=
se or object
> > > is read only." =A0
>
> > > To the best of my ability to tell, nothing is read only. =A0Any
debug=
 or
> > > repair suggestions would be deeply appreciated.
>
> > > --
> > > Carol
>
> > use Albert Kallal's "Super Easy Word Merge" code. =A0So easy, even *I*
> > can use it.
>
> >http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html

If it makes you feel any better, if I try to do it they way you
describe, I get the exact same results. Weird!

It does work if I call the Mail Merge from within Word... so you could
automate Word to do it...

Sub RunMerge()
'
' RunMerge Macro
' MailMerge Macro attempt
'
    With ActiveDo***ent.MailMerge
        .Destination =3D wdSendToPrinter
        .SuppressBlankLines =3D True
        With .DataSource
            .FirstRecord =3D wdDefaultFirstRecord
            .LastRecord =3D wdDefaultLastRecord
        End With
        .Execute Pause:=3DFalse
    End With
End Sub

(that's the code that Word wrote for me.)

so you could declare an instance of Word and run the stuff from
there... open the do***ent then continue... but why bother?  Just
steal Albert's code, say "thanks Albert!" and on you go....
 




 5 Posts in Topic:
Word template merge from Access
=?Utf-8?B?Q2Fyb2wgR3Jpc21  2008-08-06 10:45:01 
Re: Word template merge from Access
"pietlinden@[EMAIL P  2008-08-06 11:18:52 
Re: Word template merge from Access
=?Utf-8?B?Q2Fyb2wgR3Jpc21  2008-08-06 12:00:01 
Re: Word template merge from Access
"pietlinden@[EMAIL P  2008-08-06 13:06:11 
Re: Word template merge from Access
"pietlinden@[EMAIL P  2008-08-06 13:20:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 0:23:16 PST 2009.