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 / January 2008

Tip: Looking for answers? Try searching our database.

Using Operators with Field Codes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brenda A. Reid - 14 Jan 2008 16:03 GMT
I have a precedent which has:

{ set granteemf { fillin "Is the Grantee Male or Female? [type m or f]}}
{ set granteesp { fillin "Is the Grantee Singular or Plural [type s or p]}}

I would like to have an If statement combining the two, i.e.

If granteemf = f AND granteesp = s . . .

Can I do that?

Brenda
Peter Jamieson - 14 Jan 2008 17:09 GMT
The safest general-purpose way for multiple questions is

{ IF "{ granteemf \*Upper }" = "F" "{ IF "{ grannteesp \*Upper }" = "S"
"both F and S" "M or P" }" "M or P" }

But you could also consider something like

{ IF "{ granteemf \*Upper }&{ grannteesp \*Upper }" = "F&S" "both F and S"
"M or P" }

(You need something in the middle of the two results because

{ IF "{ granteemf \*Upper }{ grannteesp \*Upper }" = "FS" "both F and S" "M
or P" }

would result in "both F and S" if the user responded FS to either the M/F
question or the S/P question and left the other one blank)

Signature

Peter Jamieson
http://tips.pjmsn.me.uk

>I have a precedent which has:
>
[quoted text clipped - 9 lines]
>
> Brenda
Brenda A. Reid - 14 Jan 2008 19:32 GMT
This certainly did the trick.  Am forever grateful . . . Thanks.
Brenda

> The safest general-purpose way for multiple questions is
>
[quoted text clipped - 27 lines]
>>
>> Brenda
 
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.