Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Location
    Wisconsin
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto date field 'yyyy' + 1 (Word 97)

    I'm trying to get the Date field in Word 97 to display next year in a form letter. Example: Enrollment period of July 1, 2002 through June 30, 2003.
    In this example the years would both be autoupdated, but I can't get 2003 to display. I've tried the field format of DATE @"yyyy" + 1 and various combinations thereof, but with no luck. Anyone out there have a quick solution? Thanks in advance.

    Mike <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Auto date field 'yyyy' + 1 (Word 97)

    Look at <!post=this post, 86409>this post<!/post> and the link provided there, and shudder...

  3. #3
    New Lounger
    Join Date
    Jan 2001
    Location
    Wisconsin
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Auto date field 'yyyy' + 1 (Word 97)

    Thanks Hans.
    Yes I did shudder, but it gave me an idea. All I want is the next year to display (the actual date of June 30 is just text) so I tried this:
    {={CREATEDATE @ "yyyy"} + 1}
    Lo and behold it worked. Will it work next year?? Based on the code, I think so.

    Thanks for your help.
    Mike

  4. #4
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Auto date field 'yyyy' + 1 (Word 97)

    Try testing it - set your PC clock to next year and run it. If your form letter is a template, it probably will, if a document probably not, as CREATEDATE refers to the date the document is created. Just DATE gives today's date.

    However, you were nearly there in your original field - the format you needed was { = { DATE @ "yyyy" } + 1 } (with both sets of curly brackets being Ctrl-F9, of course).
    Beryl M


  5. #5
    New Lounger
    Join Date
    Jan 2001
    Location
    Wisconsin
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Auto date field 'yyyy' + 1 (Word 97)

    That did it. thanks everyone! The test also worked.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •