Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a Keyboard Shortcut be deactivated? 1

Status
Not open for further replies.

punky001

Programmer
Oct 1, 2007
34
0
0
US
I have a user that forgets and uses the ctrl minus sign (-) on an Access 2007 form which deletes a record - which he doesn't want to do. He uses this in Excel 2007 and it zooms out.

Is there any way I can deactivate the Ctrl minus sign in Access?
 
you can easily trap key board strokes in a versions of ms office. just google it

HTH << MaZeWorX >> "I have not failed I have only found ten thousand ways that don't work" <<Edison>>
 
How are ya punky001 . . .

I know its a little late but if not resolved perform the following:
[ol][li]Open the form in [blue]design view[/blue].[/li]
[li]Double-click the small square box at the end of the ruler to callup the [blue]properties window[/blue] for the form.[/li]
[li]Select the events tab. Scroll down to the [blue]Key Preview[/blue] event and make sure it saids [blue]Yes[/blue].[/li]
[li]In the [blue]On Key Down[/blue] event, copy/paste the following:
Code:
[blue]   If (Shift = acCtrlMask) And (KeyCode = 189) Then KeyCode = 0[/blue]
[/li]
[li][blue]Thats it ... save & perform your testing.[/blue][/li][/ol]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Thanks AceMan1!!! It works like a charm.....you got a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top