conditional merging

G

Glenn

I am trying to create a directory.

The directory will contain everyone's name and address.

It will contain their phone number only if they have given permission to me
to include it.

So, I have an access database that contains all the information.

I have a phone number for everyone.

I have a field entitled "Print Phone Number"

What I want to do is something like If Print Phone Number = "Y" then show
the number from the "PhoneNumber" field, but I can't seem to get it to work.

Any help would be appreciated.

Thanks.
 
C

Charles Kenyon

{ IF { MERGEFIELD "Print Phone Number" } = "Y" "{ MERGEFIELD "Phone
Number" }"
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
}
 
G

Glenn

I tried to copy this and paste it (after press Alt F9 to display the codes),
but it shows up as text, not as a merge code.
 
C

Charles Kenyon

The braces cannot be typed. You need to use Ctrl-F9 to insert them.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top