bollard@hpspkla.spk.hp.com (Lee M. Bollard) (12/11/90)
I want to print some labels or formletters with Word for Windows. I'm getting the addresses from a data document. There are two lines for the address, but some (most) addresses don't use both lines. How can I prevent a blank line from being printed for these empty fields? (yes, I checked the manual, but found nothing) (are there any great books on W4W?) +---------------------------------------------------------------------+ | | | Lee Bollard unix: bollard@hpspkla.spk.hp.com | | Hewlett-Packard HPDesk: Lee BOLLARD / HP1000/53 | | Spokane Division Compuserve: 72105,423 | | (509)921-4608 * Opinions are my own, not my employer's * | | | +---------------------------------------------------------------------+
webb@ccwf.cc.utexas.edu (R. Andrew Webb) (12/14/90)
I use a combination of an if field with the reference field as follows: {Address1} {if Address2 = ?* "Address2 "}{City} {State} {Zip} By putting the paragraph mark inside the quotes, it won't show up if the Address2 field is blank. The if ... = ?* tests Address2 for any text. Note that if ... = * will be true for blank fields, but ? must be an alphabetic or numeric - so ?* tests for anything that begins with an alphabetic or numeric. Hope this helps. Andy Webb - somewhere...somehow...something