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 / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Create Date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 30 Mar 2007 04:02 GMT
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.
Graham Mayor - 30 Mar 2007 06:58 GMT
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" }" }

Signature

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

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

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