![]() |
#1
|
|||
|
|||
![]()
I have a database where some queries utilize VBA code to output text for mail merge.
To make these queries appear during a mail merge I have to check the advanced option 'Confirm File Format on Open'. Then select DDE when doing the merge. If I try to merge with VBA code within a word document: ActiveDocument.MailMerge.OpenDataSource Name:=dbpath, ConfirmConversions:=True, ReadOnly:=False, LinkToSource:=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False, Connection:="", Format:=wdOpenFormatAuto, SubType:=wdMergeSubType2000 It successfully opens the database but the queries that have the VBA code are absent as if the 'Confirm file format..' is unchecked. How can I make them appear when doing a merge with VBA code? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mohsin | Word | 1 | 03-27-2012 10:43 PM |
![]() |
optiontips.in | Mail Merge | 2 | 11-21-2011 03:12 AM |
mail merge queries not displaying | donwalt | Mail Merge | 0 | 09-05-2010 02:41 PM |
![]() |
webguync | PowerPoint | 7 | 04-20-2010 07:23 AM |
Access Object library 10 | Gyto | Office | 0 | 10-09-2008 09:04 AM |