mail merge locking

J

judith

I am trying to mail merge from Access. The first merge works fine but if i go
out to run a further merge it opens word but fails to link back to the
database table. I am using


objWordDoc.Documents.Add templateName


' Set the mail merge data source .
ActiveDocument.MailMerge.OpenDataSource _
Name:=wordLinkBase, _
LinkToSource:=True, _
Connection:="TABLE " & tableName, _
SQLStatement:="SELECT * FROM [" & tableName & "]"

' Execute the mail merge.

Set closeFileName = ActiveDocument
ActiveDocument.MailMerge.Execute
closeFileName.Close wdDoNotSaveChanges



Using Access XP but with 2000 format

Any suggestions please
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top