B
Bryan L
I've set up a table in Word that uses merge fields to pull customer
information from our SQL DB application. All customers have a FirmName
entered but only some customers have a DBA entered. For customers where a
DBA exists, I want to prepend "DBA: " to the DBA field, and this is in fact
working just fine. However, I want the DBA to appear below the FirmName,
and I haven't figured out how to accomplish this in a table. Right now,
here's how things appear in the cell:
TLC Properties, LLC / DBA: Miller Hotels
Here's how I want things to appear:
TLC Properties
DBA: Miller Hotels
When working outside a table, I know it's a simple matter for Word to remove
the extra hard returns when a particular merge field is blank so no blank
lines are left where the merge field placeholder was. But I can't figure
out how to make that work within a single cell in a table. Here's what my
merge fields look like in that cell:
{MERGEFIELD ToFirmName} { IF {MERGEFIELD ToDBA }<> "" "/ DBA:" "" } {
MERGEFIELD ToDBA }
So specifically, I need to figure out how to add a hard return in front of
the "DBA:" conditional text when the DBA field is not blank. I'm trying to
avoid wasted space, which is why I'm not simply creating a separate cell for
the DBA field. I don't want it to sit there empty when there's no DBA for
that customer.
Hope this makes sense; any help appreciated.
Bryan
information from our SQL DB application. All customers have a FirmName
entered but only some customers have a DBA entered. For customers where a
DBA exists, I want to prepend "DBA: " to the DBA field, and this is in fact
working just fine. However, I want the DBA to appear below the FirmName,
and I haven't figured out how to accomplish this in a table. Right now,
here's how things appear in the cell:
TLC Properties, LLC / DBA: Miller Hotels
Here's how I want things to appear:
TLC Properties
DBA: Miller Hotels
When working outside a table, I know it's a simple matter for Word to remove
the extra hard returns when a particular merge field is blank so no blank
lines are left where the merge field placeholder was. But I can't figure
out how to make that work within a single cell in a table. Here's what my
merge fields look like in that cell:
{MERGEFIELD ToFirmName} { IF {MERGEFIELD ToDBA }<> "" "/ DBA:" "" } {
MERGEFIELD ToDBA }
So specifically, I need to figure out how to add a hard return in front of
the "DBA:" conditional text when the DBA field is not blank. I'm trying to
avoid wasted space, which is why I'm not simply creating a separate cell for
the DBA field. I don't want it to sit there empty when there's no DBA for
that customer.
Hope this makes sense; any help appreciated.
Bryan