Terry --
As Jim B. pointed out, rethink your interface.
Cetin Basoz posted a link to someone else with a similar problem a few days ago. Here it is: (Thanks Cetin):
"As Ken pointed out it's documented in
BUG: Focus Changes Even Though Grid Text Box Valid Returns .F. with no workaround."
>I have a txtbox in a grid with the valid set to fire a messagebox and return 0 when a data condition is not met. It works fine unless you click on a control outside of the grid. Then the event fires properly but the clicked on control still gets focus after the messagebox leaving bad data in the txtbox. What do I need to do to prevent this?
>
>TIA
>Terry
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05