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 / December 2006

Tip: Looking for answers? Try searching our database.

mailmerge field conditionally suppressed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Angelaf - 06 Dec 2006 11:21 GMT
I want one mailmerge field to be conditionally suppressed if another is not
null

ie: if isnull organisation_name then contact_name

One name only to appear - that is Contact name to appear instead of
Organisation name only if there is no Organisation name .

I can't get this to work.  Any ideas please ?
Peter Jamieson - 06 Dec 2006 11:40 GMT
Try the following nested fields:

{ IF "{ MERGEFIELD organisation_name }" = "" "{ MERGEFIELD contact_name }"
"{ MERGEFIELD organisation_name }" }

You can insert each pair of the special field braces "{}" using ctrl-F9 and
type all the remaining text in the usual way.

Peter Jamieson

>I want one mailmerge field to be conditionally suppressed if another is not
> null
[quoted text clipped - 5 lines]
>
> I can't get this to work.  Any ideas please ?
Angelaf - 06 Dec 2006 12:55 GMT
Thanks Peter - doesn't work though, I just get nothing at all printed with
either condition.  It may be because the merge is using Access fields and
running from within an Access application.  Whne inserting single Mailmerge
fields they are enclosed in angle brackets << >>

Maybe it can't be done ........

> Try the following nested fields:
>
[quoted text clipped - 15 lines]
> >
> > I can't get this to work.  Any ideas please ?
Peter Jamieson - 06 Dec 2006 13:15 GMT
> Thanks Peter - doesn't work though, I just get nothing at all printed with
> either condition.

Can you verify that /all/ the {} are the special field code braces (that'#s
the usual problem with nested fields) ? If you click Alt-F9, you should see
the "field codes". Then if you try to select (say) the first { in any of the
fields, Word should select the whole field.

If you just insert { MERGEFIELD organisation_name } on its own, is it
definitely blank when it is null in Access? (e.g. try putting something like
x{ MERGEFIELD organisation_name }x and see if anything appears between the
two "x" s when you update the field.

If you're running from within Access, the most likely problem is that Word
is simply not connecting to its data source. However, if you enable the Mail
Merge tool bar, it should be reasonably obvious one way or the other because
typically most of the icons after the first two will be greyed f there is no
connection.

Peter Jamieson
> Thanks Peter - doesn't work though, I just get nothing at all printed with
> either condition.  It may be because the merge is using Access fields and
[quoted text clipped - 26 lines]
>> >
>> > I can't get this to work.  Any ideas please ?
Doug Robbins - Word MVP - 06 Dec 2006 15:48 GMT
It is better to to the data manipulation in a data base rather than in a
word processor.  Use the IIF() function in an Access Query and use that
Query as the data source.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I want one mailmerge field to be conditionally suppressed if another is not
> null
[quoted text clipped - 5 lines]
>
> I can't get this to work.  Any ideas please ?
 
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.