>Sergey,
>
>Thanks for your response. One last question - what if the text box in question is within a container object such as a grid? how do i reference that object?
In this case Activecontrol will be a grid and you'll have to drill down to find which control in grid has a focus. The code in either of the following messages could be used with slight adjustments to acomplish that:
_Screen.ActiveForm.ActiveControl.Setfocus() and Grids Message #
478750Activecontrol questoin Message #
623022
--sb--