Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / April 2007

Tip: Looking for answers? Try searching our database.

Conditional If statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maria - 14 Apr 2007 06:00 GMT
I am working on a mail merge label that if the Age field is less than 13 the
ParentName field needs to appear underneath the ChildName field.

The If statement below is working correctly if there is a figure in Age
however, if that field is blank it is creating a blank label with the
ParentName in it.

{If  < "13" "{mergefield ParentName}" ""}

Any ideas would be greatly appreciated.  Thanks
macropod - 14 Apr 2007 07:26 GMT
Hi Maria,

If your Age field is empty, it should evaluate to 0, so the parent's name would be expected to appear in such cases. But so should
the child's name, so I don't understand the bit about the "blank label with the ParentName in it". Perhaps you could give a bit more
explanation about this.

If you're simply trying to suppress the parent's name when the child's age is missing, try:
{IF{MERGEFIELD Age}> 0 {IF{MERGEFIELD Age}< 13 {MERGEFIELD ParentName}}}

Cheers
Signature

macropod
[MVP - Microsoft Word]
-------------------------

>I am working on a mail merge label that if the Age field is less than 13 the
> ParentName field needs to appear underneath the ChildName field.
[quoted text clipped - 6 lines]
>
> Any ideas would be greatly appreciated.  Thanks
Maria - 15 Apr 2007 15:22 GMT
Thank you very much, that was also what needed to be accomplished, if there
was no Age then it should be blank instead of returning the parentname.  Your
input was greatly appreciated and your if statement worked correctly.

Thanks again.  

> Hi Maria,
>
[quoted text clipped - 16 lines]
> >
> > Any ideas would be greatly appreciated.  Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.