#1   Report Post  
Posted to microsoft.public.word.pagelayout
Garry Jones
 
Posts: n/a
Default MERGEFIELD error

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
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Suzanne S. Barnhill
 
Posts: n/a
Default MERGEFIELD error

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 he

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

--
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.

"Garry Jones" wrote in message
...
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


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
MS VB error Runtime error 160 for Word 2003? Dhana Mailmerge 1 January 5th 06 10:54 AM
error message - ntvdm.exe pattiann Microsoft Word Help 2 November 21st 05 12:10 AM
Help! I'm getting error messages too much-can't open Resume Wizard LizLB Microsoft Word Help 0 May 3rd 05 01:46 AM
Table of Footnotes giving "Error! No table of figures entries found" error? Kevin Walton Tables 2 February 17th 05 09:25 PM
Error Message: "C:\~~\~~~_virtual_file_~~~.olk Is Being Used ..." Markus Mailmerge 1 January 27th 05 03:31 PM


All times are GMT +1. The time now is 04:00 PM.

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"