![]() |
#11
|
||||
|
||||
![]()
Hi JennEx,
The code I provided is intended to replace the 'traditional' mailmerge. As you're running the merge from an Excel macro, it's best to use an 'ordinary' document and embed the SQL code for the merge into the macro (i.e "SQLStatement:="SELECT * FROM `CONTROL_1$`""). Amongst other things, that means you don't get the SQL prompt when the document is opened. If you saved the document as a plain document, so that the mailmerge SQL prompt is no longer generated, I can't see how you'd be getting a connection error message when opening it normally. As for the persistent issue with your time fields, does it concern all records for that field, or still only some of them? If it's the latter, can you upload a workbook with some that work and others that don't?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Switches | ilovemypuppy | Word | 2 | 02-08-2012 04:28 PM |
![]() |
cksm4 | Word VBA | 2 | 02-03-2011 07:21 AM |
Mail merge switches | Jan Collier | Mail Merge | 0 | 08-29-2010 06:06 AM |
Command Line Switches | Ringmaster | Office | 0 | 08-10-2010 06:27 AM |
Help with switches: Word mail merge with Excel | ks_ | Mail Merge | 0 | 12-09-2009 05:09 PM |