Disabling Special keys in Acc 2000

M

Mota

Hi;
Can i disable the predefined action of functional keys such as F1 (Access
help),F2,F3,F11 and so on,and use them for another purposes in my program?
Thank you.
 
A

Allen Browne

Create a macro named AutoKeys.

In the Macro Name column, enter:
{F2}
etc, with the appropriate actions.
 
M

Mota

Can it be done thru code?
Thank you.

Allen Browne said:
Create a macro named AutoKeys.

In the Macro Name column, enter:
{F2}
etc, with the appropriate actions.
 
A

Allen Browne

If you want to apply the keystrokes everywhere in your database, the macro
is easiest. You can use the RunCode action to fire the code.

If you want to do it in a form-by-form basis, you can set the form's
KeyPreview property to Yes, and then use the KeyDown event. Examine the
value of the KeyCode to see if it's the key you want to process, and set
KeyCode to zero to suppress the built-in response.
 
M

Mota

I dont want to just supress its default action,but assigning another code to
be done,together with supressing its default action.
Thank you.
 
Top