IF does not use parentheses in Word
{ =IF { CREATEDATE \@ "MM" } = 01 { CREATEDATE \@ "yyyy" } { = { CREATEDATE
\@ "yyyy" }+1 \# "0000"} }
For additional samples of IF statements in dates look at
http://addbalance.com/word/datefields2.htm.
--
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.
I have the following as field codes
{ =IF( { CREATEDATE \@ "MM" } = 01 { CREATEDATE \@ "yyyy" } { = { CREATEDATE
\@ "yyyy" }+1 \# "0000"} ) }
Everything in RED is working, but I can't get the IF statement to work.
What am I doing wrong?