>>oTempControl=_screen.activeform.activecontrol
>>oTempControl.SetFocus
>>_screen.activeform.SaveTheRecord
>>
>> I don't know for sure if losing focus first is necessary for the control.value to be written into alias.field, but I seem to remember that gaining focus is sufficient. If this works, we don't have to take care of the control's class.
>
>Hmmm...the problem stems from toolbars and menus not respecting the fact that the form has lost focus and hence the control has not lost focus. Have you tried this code?
That's why I said "why not try like this" - I don't use toolbars. It was one of the first things I've learned here on the UT, that the control doesn't lose focus when you click on the toolbar, thus it's still the active one, and could/should be refreshed. This issue was addressed by someone who tried it... about ten to twelve months ago. Couldn't actually take the time to do a search, we're having a little rain over here, and my phone line breaks in five minutes...