>In my conversion, I am getting the following error.
>
>Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event.
>
>How do I handle this?
>
>What is happening, is a user is changing a option group item and a requery of a grid occurs. After the requery is done, the code sets focus to the grid via:
>
>thisform.cgrid1.setfocus()
>
>
>Any ideas?
>TIA,
>Mike
Move your code to somewhere else from valid to say interactivechange.
Cetin