>Larry:
>
>Having a CASE statement that does nothing was the first thing I tried. The problem is that what happens when you hit {ENTER} is that even tho nothing fires, the button gains focus automatically even tho it is invisible and the cursor "disappears" as far as the user knows. What I need is for NOTHING to happen on Tab 1 when I hit the {ENTER} key.
>
Richard,
You could use the SetFocus method to set the focus elsewhere or you could add the following to the GotFocus of the button:
if THISFORM.Pageframe1.ActivePage = 1 then
nodefault
endif
This will prevent the button from receiving focus and the Click will not fire.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao