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

Tip: Looking for answers? Try searching our database.

Word2000 Use of ASK and IF does not give correct text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jane Duddy - 19 Sep 2006 10:48 GMT
In mailmerge document have used ASK field to save user response in bookmark
which is then tested in IF fields to include (or not) different text in body
of document. Does not work. see below for what you see if you view document
with mergefields etc showing
I invite you to attend a { ASK bkFullHalfDayResponse "f for full day with
lunch, hl for half day with lunch, h for half day" }{ IF
bkFullHalfDayResponse=f "full day" "half day" }assessment centre.{ IF
bkFullHalfDayResponse=f "Lunch will be provided for you. If you have any
special dietary requirements then please let us know in advance." " " } .{ IF
bkFullHalfDayResponse=hl "Lunch will be provided for you. If you have any
special dietary requirements then please let us know in advance." " " }
Whatever the user types in in response to the ASK prompt they get 'full day'
for the first if and 2 paragraphs for dietary requirements text.
What am I doing wrong?
Thanks
Peter Jamieson - 19 Sep 2006 11:05 GMT
I suggest you try the following syntax in your IF fields:

{ IF { bkFullHalfDayResponse } = "f" "full day" "half day" }

or

{ IF { REF bkFullHalfDayResponse } = "f" "full day" "half day" }

Actually I prefer to play safe and use

{ IF "{ REF bkFullHalfDayResponse }" = "f" "full day" "half day" }

or even

{ IF "{ REF bkFullHalfDayResponse \*upper }" = "F" "full day" "half day" }

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

[NB, you may find examples, e.g. on the Microsoft site, that suggest you can
use a bookmark name or mergefield name on its own, without the {} - it may
have worked once, and it may even work in some circumstances now, but at
best it's an unreliable practice. The same applies to {=} fields]

Peter Jamieson

> In mailmerge document have used ASK field to save user response in
> bookmark
[quoted text clipped - 16 lines]
> What am I doing wrong?
> Thanks
Jane Duddy - 19 Sep 2006 13:16 GMT
Thanks very much Peter - I used the last full syntax and it worked a treat.

> I suggest you try the following syntax in your IF fields:
>
[quoted text clipped - 42 lines]
> > What am I doing wrong?
> > 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.