AutoYield is currently on but I'll have a play with the DOEVENTS.
Thanks for your help.
Caroline
>Hi!
>
>Wait Widnow?
>
>Well, I'm no 80% sure it have something related to _VFP.AutoYield or DOEVENTS. As I said, try to play with them, for example, turn _VFP.AutoYield off and use DOEVENTS after the UPDATE() call, or just turn _VFP.AutoYield on.
>
>HTH.
>
>>Vlad thanks for the reply.
>>
>>As far as my assumption is concerned if I place a wait window nowait after the Update it consistently works! Otherwise Word throws an exception "The instruction at 0x.... referenced memory at 0x... The memory could not be read". Now as this is not a Fox error I didn't think I could trap it - is that correct?
>>
>>>Hi!
>>>
>>>> ... so I'm assuming that my code is trying to continue before the Update() has finished.
>>>
>>>First of all, I would get rid of asumption here and assure that it is really continue executing befire Update() finished.
>>>
>>>Also, there are a couple of background-processing things in MS Word (like file saving and printing in background) that you can turn off using certain properties.
>>>
>>>You can use as a workaround following: just trap for that error and do several attempts till you get desired result.
>>>
>>>Also, (just for luck ;-) try to play with _VFP.AutoYield property.
Caroline