Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #19  
Old 04-09-2013, 06:59 AM
JennEx JennEx is offline Problems With MergeField Switches Windows XP Problems With MergeField Switches Office 2003
Competent Performer
Problems With MergeField Switches
 
Join Date: May 2010
Posts: 162
JennEx is on a distinguished road
Default

OK Paul ... we're moving forward now!

I've got the VBA code working well now. The merge is working, and the code is allowing the flexibility for the recipient list I need through the variable SQL.

I'm tackling the header and footer fields now, which aren't populating in the VBA merge. All that is being displayed is the final merged document is <<fieldname>>.

Quote:
1. You can overcome the header mergefield issue via the use of SET fields in the body and REF fields in the header. See attached (I've made a variety of changes to the header and the first row of the table in the body).
Unless I'm using REF incorrectly, when I add it to the mergefield after the opening {eg. {REF tldr} I receive "Error! Reference source not found."

I am also curious about, in the sample report you provided with me, the date fields: {REF Mydate \* charformat}

Can you explain how this works? "Mydate" isn't a field in my database ... so where did the date information come from? There is no formatting switch in your fieldcode, so where did the formatting come from. I believe, and correct me if I'm wrong, charformat ensures that the field font properties stay consistent with what is intended. DOes it ensure the number format remains as intended as well?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Switches ilovemypuppy Word 2 02-08-2012 04:28 PM
Problems With MergeField Switches Index switches 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft