Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-24-2015, 03:04 PM
macropod's Avatar
macropod macropod is offline Tables in IF blocks returning empty row as opposed to nothing Windows 7 64bit Tables in IF blocks returning empty row as opposed to nothing Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,520
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It appears from your code that you have line/paragraph breaks between each of the field sets. Instead of:
{ IF { MERGEFIELD FieldName1 } <> "" "<table><tr><td>ColName1</td><td>ColValue1</td></tr></table>" "" }¶
{ IF { MERGEFIELD FieldName2 } <> "" "<table><tr><td>ColName2</td><td>ColValue2</td></tr></table>" "" }¶
{ IF { MERGEFIELD FieldName3 } <> "" "<table><tr><td>ColName3</td><td>ColValue3</td></tr></table>" "" }¶
you should have:
{ IF { MERGEFIELD FieldName1 } <> "" "<table><tr><td>ColName1</td><td>ColValue1</td></tr></table>" "" }{ IF { MERGEFIELD FieldName2 } <> "" "¶
<table><tr><td>ColName2</td><td>ColValue2</td></tr></table>" "" }{ IF { MERGEFIELD FieldName3 } <> "" "¶
<table><tr><td>ColName3</td><td>ColValue3</td></tr></table>" "" }¶
where ¶ is your line/paragraph break.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables in IF blocks returning empty row as opposed to nothing Macro to delete all empty rows from all tables braddgood Word VBA 15 10-02-2015 01:54 PM
Tables in IF blocks returning empty row as opposed to nothing What is purpose of slide master, as opposed to slide layout meileetan PowerPoint 3 01-10-2014 02:20 AM
Can you create a bibliography (as opposed to a table of authorities) in Word 2003? New Daddy Word 1 11-06-2012 02:37 AM
Apparently empty (blank) cells aren't empty daymaker Excel 3 03-08-2012 03:41 PM
compatibility mode VS saving to doc as opposed to docx airtas Word 7 05-30-2010 02:19 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:30 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