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 / Page Layout / January 2006

Tip: Looking for answers? Try searching our database.

MERGEFIELD error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Garry Jones - 24 Jan 2006 22:35 GMT
How do I combine the \b and \@ switches in MERGEFIELD?

{MERGEFIELD "Date2" \@ yyyy/MM/dd} ...has the desired effect.

{MERGEFIELD "Date2" \b " - "} ...has the desired effect.

{MERGEFIELD "Date2" \@ yyyy/MM/dd  \b " - "} ignores the \b switch.

In my case I need to combine the two switches.

What am I missing in the syntax?

Any help appreciated.

Garry Jones
Sweden
Suzanne S. Barnhill - 25 Jan 2006 01:29 GMT
If you want the date as 2006-01-24 (as you say), you need to be using  \@
yyyy-MM-dd instead of  \@ yyyy/MM/dd. And you still haven't answered our
questions about what you expect the \b switch to; according to the Help, it
"specifies the text to be inserted before the MERGEFIELD field if the field
is not blank." So I'm guessing this is what you're using to insert the
second date. I think you'd have better luck using an IF field here:

{ IF { MERGEFIELD "Date2" = "" "" "-{MERGEFIELD "Date2" \@ yyyy-MM-dd }" }

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> How do I combine the \b and \@ switches in MERGEFIELD?
>
[quoted text clipped - 12 lines]
> Garry Jones
> Sweden
 
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.