Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Merge "If" Field 2

Status
Not open for further replies.

ssVBAdev

Programmer
May 23, 2003
257
US
I'm creating a Mail Merge Letter and would like the merge to include, or not include, text based on data info. For instance:

If there is not a Fax number don't have the "Fax:" line...
If there is not a Job Title entered then don't include the "," after the last name...

The formula I have for the MergeField in the letter does not seem to work:

{ IF JobTitle <> &quot;&quot; &quot;,&quot; &quot;&quot; }
This field is right after the Last Name field and before the Job Title field. So, if there is no Job Title the &quot;,&quot; should not show up...

Any suggestions??

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top