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 / Mailmerge and Fax / July 2007

Tip: Looking for answers? Try searching our database.

Word cannot update the index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anderflash - 26 Jul 2007 01:10 GMT
"Word cannot update the index" is an error when I create an Index and a form
in the same document. When I protect the form and write any value at the form
controls, this error happens.
Is there a solution to that?
Peter Jamieson - 26 Jul 2007 11:02 GMT
As far as I can see you get that when you set the form fields to "Calculate
on Exit" and it doesn't look as if there's much you can do about it if you
have to have Calculate on Exit - e.g. putting the Index in an unprotected
section isn't enough. (You seem to be able to use exit macros OK, but then
that's a different thing).

Could you do something like programmatically change the { INDEX } field so
it is e.g.

{ SET INDEX whatever }

then when the form is complete, programmatically change it back to {
INDEX }? Haven't tried it, but it's the only thing I can think of right now.

Peter Jamieson
> "Word cannot update the index" is an error when I create an Index and a
> form
> in the same document. When I protect the form and write any value at the
> form
> controls, this error happens.
> Is there a solution to that?
Anderflash - 26 Jul 2007 23:54 GMT
So, with your suggestion, the only way to avoid this error is making a macro
with a loop on the fields of the document and testing if the type of the
field is wdFieldIndex. Else, update the field. Finally, the macro should be
in the option "On exit" of the text fields.

Thanks for the suggestion.

> As far as I can see you get that when you set the form fields to "Calculate
> on Exit" and it doesn't look as if there's much you can do about it if you
[quoted text clipped - 17 lines]
> > controls, this error happens.
> > Is there a solution to that?
Peter Jamieson - 27 Jul 2007 10:49 GMT
<<
> So, with your suggestion, the only way to avoid this error is making a
> macro
> with a loop on the fields of the document and testing if the type of the
> field is wdFieldIndex.

Not really. It seems to me that if you have Calculate on Exit, Word will try
to update any INDEX field automatically, so you have to avoid having any
INDEX field while the form is being filled in. You could either chnage the
field type temporarily along the lines I suggest (in which case it probably
wouldn't be detected as a wdFieldIndex field - or insert the necessary field
when the form has been completed. However, that assumes that it is possible
to detect when the user has finished filling in the form, and of course, if
they have the opportunity to "finish", then continue editing after all, you
need to be able to detect that. I suppose I'd probably opt for some kind of
"Finish/Continue" button and hang an update macro on that.

Peter Jamieson

> So, with your suggestion, the only way to avoid this error is making a
> macro
[quoted text clipped - 32 lines]
>> > controls, this error happens.
>> > Is there a solution to that?
 
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.