Create Date

J

John

I have a Word 2003 template and I need to insert a field where if the
createdate (year only) = savedate (year only) I have to print the save date
(year only). I presume I have to use conditional fields but I can't make it
work and keep getting a too many picture switches error message. Can
somebody help me? Both the create and save date must come from the system,
with no user input.
 
G

Graham Mayor

If you are only interested in the years this is fairly straightforward

{ IF{ CREATEDATE \@ "yy" } = { SAVEDATE \@ "yy" } "{ SAVEDATE \@ "yy" }" }

If you are interested in the whole dates, but want to print only the year
then

{ IF{ CREATEDATE \@ "yyyyMMdd" } = { SAVEDATE \@ "yyyyMMdd" } "{ SAVEDATE \@
"yy" }" }


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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top