>I would like to associate Function keys (F1...F9) with the Command buttons.
>How could I upon pressing one of the function key, then trigger the
>button's
>Click() command.
>
>I have tried to use ON KEY LABEL F9 ThisFormSet.MyForm.CmdButton.Click()
>but error return saying "ThisFormSet" can only be use in a method.
>Pls advise, thanks.
If you really must do this, then try the ACTIVEFORM object. i.e.
ON KEY LABEL F9 _SCREEN.ActiveForm.CmdButton.Click()