Reply
 
Thread Tools Display Modes
  #1   Report Post  
YaHootie
 
Posts: n/a
Default How to program if statement in mergefield

A Newbie trying to make a Envelope Mail Merge document. I want to be able to
print the Surname of females followed by their Married Names. If Male then
only the Surname should print. The fields I have set up in my Excel database
a Fname, Lname, Sex (M or F), Spouse Lname. Trying to follow MS help menu
but not helping much. Would someone give me the syntax I would use in the
MERGEFIELD area. Thank you in advance for any assistance.
  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

Something like:

{ MERGEFIELD Lname }{ IF { MERGEFIELD Sex } = "F" " { MERGEFIELD "Spouse
Lname" }" "" }

All the {} need to be the special field braces you can enter using ctrl-F9

Peter Jamieson

"YaHootie" wrote in message
...
A Newbie trying to make a Envelope Mail Merge document. I want to be able
to
print the Surname of females followed by their Married Names. If Male
then
only the Surname should print. The fields I have set up in my Excel
database
a Fname, Lname, Sex (M or F), Spouse Lname. Trying to follow MS help
menu
but not helping much. Would someone give me the syntax I would use in the
MERGEFIELD area. Thank you in advance for any assistance.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does the program close when a file is closed? Carmie Microsoft Word Help 1 January 19th 05 10:19 PM
MergeField Formatting PeterM Microsoft Word Help 2 January 15th 05 07:17 PM
Insert carriage return in mergefield statement dixie Mailmerge 2 December 22nd 04 03:42 AM
IF Statement using multiple Expressions with Bolean Viperpurple Mailmerge 3 December 19th 04 02:33 PM
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements Mark V Mailmerge 8 November 30th 04 01:31 PM


All times are GMT +1. The time now is 02:00 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"