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 / Long Documents / August 2003

Tip: Looking for answers? Try searching our database.

Field code for previous month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brad - 27 Aug 2003 19:40 GMT
Hi all,

I get the impression that this should be really simple but it feels
like I've been banging my head against a brick wall for ages.

I'm running Word 97 on NT4 and the help files says that I can get the
previous month by using the field code -

{ QUOTE { IF { DATE \@ "M" } = 1 "12" " {= { DATE \@ "M" } -1 } "
}/1/95 \@ "MMMM" }

but I keep getting this error message "Error! Too many picture
switches defined."   I can't find the error message anywhere in the
help files and I've tried changing the above but to no avail.

Is this a bug in Word 97 or am I just being stupid.

Thanks in advance for any gracious assistance.

Brad
Geoffrey Oakes - 28 Aug 2003 12:07 GMT
Brad:

I tried your field code on my Word 97 / NT 4 system and it worked correctly.

Then I entered the { QUOTE } field by using Insert->Field, but deliberately
made an error by entering the contents ({ IF { DATE \@ "M" } = 1 "12" " {=
{ DATE \@ "M" } -1 } " }/1/95 \@ "MMMM") as text rather than by inserting
the IF, DATE and = fields. This resulted in the same message you are
seeing - "Error! Too many picture switches defined.".

Hope this helps,
Geoff

> Hi all,
>
[quoted text clipped - 16 lines]
>
> Brad
macropod - 29 Aug 2003 12:57 GMT
Or, even simpler:
{QUOTE{=MOD({DATE \@ "MM"}-2,12)+1}/00 \@ MMMM}
Only 3 nested fields!
Cheers
PS: Remove NO.SPAM from the above before replying.

>-----Original Message-----
>Hi all,
[quoted text clipped - 18 lines]
>Brad
>.

Rate this thread:






 
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.