Hi Robin you can try the following:
in the Init of your form put the following code
ON KEY LABEL F12 Formreference.mybutton.Click()
no on the destroy of the form
ON KEY LABEL F12
>How do I get a keypress to perform a button click on my form.
>
>Many thanks in advance
>
>Robin Clapworthy
>BSS
Alexandre Palma
Senior Application Architect