>Hello Gilles,
>
>I think that what is really happening is that the textbox in the form never looses focus.
>
>ToolBars in VFP don't get focus (every contro,can get the focus but ToolBars just don't get it)
>So your textbox doesn't looses the focus when you click in a toolbar button. Therefore the controlsource of the textbox isn't updated.
>When you issue tableupdate(), the table field still has the old value. The table field will only have the new value when you get out of the textbox control.
>
>You can overide this by putting code in the interactivechange event of the textbox to do the replace of the fields with this.value
>Now the table field is replaced as soon as you type values in the textbox. When you click the button in the toolbar the tableupdate(89 will function correctly.
Thanks for the tip I'll try... I've found another solution working : I put _Screen.ActiveForm.ActiveControl.SetFocus() in the button and it seems to work !!
Gilles