Naomi,
is there a reason against simple
PROCEDURE CLICK
NODEFAULT
DO CASE
CASE ...
?
I have a button with a similar problem - it calls a method btw.
Agnes
>
>Add NODEFAULT after thisform.... Click for each case.
>
>In other words,
>
>CASE nKeyCode = 49
> thisform.AddNew()
> nodefault
> CASE nKeyCode = 25
> thisform.PrintReport()
> nodefault
>
>
>Also it would be better to use form's methods instead of buttton's Click event.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]