Charles
Tue May 10 16:06:21 CDT 2005
This is more complex than you might imagine, but it can be done. See
http://addbalance.com/word/datefields2.htm for information on the different
kinds of ways to make a date calculation work. It includes links to pages
with fields and an explanation of different macros that can be used instead
of fields. Also, note that if 24 yrs, 2 mos. is not the same as 25 yrs,
simply subtracting the years portion of a date will not give you a valid
result; you'll need to figure to at least months, and probably days, and
then truncate or round.
--
Charles Kenyon
Word New User FAQ & Web Directory:
http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
http://addbalance.com/usersguide
See also the MVP FAQ:
http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"Austin" <Austin@discussions.microsoft.com> wrote in message
news:D8AF3676-7259-41BC-85E3-D19A3705C1AE@microsoft.com...
>I need to insert a field code that can take the current date and then
> subtract a certain year and display the result. For instance I have a
> person
> who started working in 1970 and today is May 10 2005 so he has 35 years of
> service.
>
> If I could also calculate the exact start day mm/dd/yyyy and have the
> current date subtract, that may be helpful but not necessary - I don't
> need
> to break it down to months.
>
> Thanks!