field with date and if in word

S

sts

How do you print a conditional date on letters (word 2003). The Formula
should read:
{If SaveDate = "" Date Savedate}
but doesn't work that way. The date should be printed in a special format,
too (dd. mmmm yyyy).
Or the User could be asked for a date, this should also be printed in a
selected format and even better the current date should be proposed (Ask,
Fill-in, Greetingline?).

Thanks for your help
 
G

Graham Mayor

What is the purpose of this field attempt? The syntax you are trying to
achieve would be
{IF {Savedate \@ "yyyyMMdd"} = 0 "{Date \@ dd. MMMM yyyy"}" "{SaveDate \@
dd. MMMM yyyy"}" }
but I doubt that would achieve anything useful.
Savedate is never a nul value.
If you save the document the Savedate will be the date you save the
document.
The more useful date field in a template would be a Createdate field. which
would be the date you create the document from the template.
If you want a specific date, use an ASK field and insert that result with a
REF field.
If you want a calculated date see
http://www.gmayor.com/insert_a_date_other_than_today.htm

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

sts

Thank you for your reply, I tried it with

{IF {Savedate \@"yyyyMMdd"} =

"00000000"

{Date \@"dd. MMMM yyyy"}" "{SaveDate \@"dd. MMMM yyyy"}" }

as the nuls are printed as long as the template is not yet saved. I think it
should work.
The purpose is that if a letter is written there should be printed a date,
even if the file has not yet been saved and is only displayed on the screen
(having used the template). Then the file is saved, but in the coming days
changes are made until the final version is saved. When the document is
printed in the future, it will show the date last saved; thus I thought I had
to use SaveDate instead of CreateDate (with the peril that the secretary
could save an unintentionally opened file without any content-changes and so
mixing all up - do you have any remedy against that?)

Thanks again

Steffen
 

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