Re: {If } doesn't work

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



It might work better with the slashes the right way round? ;)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Stefan Blom wrote:
Try this:

{ IF { SAVEDATE \# "0" } = 0 "{ CREATEDATE /@ "ddMMMMyyyy" }" "{
SAVEDATE /@ "ddMMMMyyyy" }" }


I am trying to create a date field which inserts the CreateDate or
where applicable the SaveDate. This is to avoid having new docs from
templates opening with zeros and 'x's prior to saving, which happens
if there's a savedate.

I have put this into a field but it will not work.

{ IF { SAVEDATE } > { CREATEDATE } { SAVEDATE /@ "ddMMMMyyyy" }
{CREATEDATE /@ "ddMMMMyyyy" } }

Using Office 2007 and Vista.

Thanks!


.



Relevant Pages

  • Re: field with date and if in word
    ... Word MVP web site http://word.mvps.org ... as the nuls are printed as long as the template is not yet saved. ... Savedate is never a nul value. ...
    (microsoft.public.word.docmanagement)
  • Re: Using Find replace to reverse words: Cottage Mimosa > Mimosa Cottage,etc
    ... Word MVP web site http://word.mvps.org ... Stefan Blom wrote: ... Mimosa, Cottage Alohi, etc. ...
    (microsoft.public.word.newusers)
  • Re: Saving "Normal.dotm"
    ... If a decision has been made, no one has the nerve to tell us, but the continuing migration to forums is interpreted by many as the handwriting on the wall. ... "Stefan Blom" wrote in message ... Microsoft Word MVP ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.docmanagement)
  • Re: Themes 2003 vs 2007
    ... Microsoft Word MVP ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... "Stefan Blom" wrote: ...
    (microsoft.public.word.docmanagement)
  • Re: Style box added on 2007 QAT shows nothing
    ... And, no, the usual suspects were found not guilty. ... Stefan Blom ... Microsoft Word MVP ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.docmanagement)