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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create a key behavior?

Status
Not open for further replies.

Gustavson

Technical User
Nov 2, 2001
105
US
I'm using access97. I have a form on which I enter records. Each record can then be looked at by clicking the record counter on the bottom left of the form. I want to create a key that will do this so I don't have to reach for the mouse and click the record selector. Is there a way to create a key on the keyboard that will do the same thing? Can I assign one of the F1 thru F12 key for example to go back one record or forward one record on the form? I've seen this {ins} in a macro on another database to add a record, but I'm not sure how it works...
Hope this is enough info...
Thanx
Gustavson
 
Here's the solution:

Assign an action or set of actions to a key

You can assign an action or set of actions to a specific key or key combination by creating an AutoKeys macro group. When you press the key or key combination, Microsoft Access carries out the action.

1 In the Database window, click the Macros tab.
2 Click New.
3 Click Macro Names on the toolbar.
4 In the Macro Name column, type the key or key combination to which you want to assign the action or set of actions.

For information on the key combinations you can use to make key assignments, click .

5 Add the action or set of actions you want the key or key combination to carry out. For example, you could add a RunMacro action that runs the Print Current Record macro when CTRL+P is pressed.

6 Repeat steps 4 and 5 for any other key assignments you want to make.
7 Save the macro group with the name AutoKeys.

The new key assignments are in effect as soon as you save the macro group and each time you open the database.

Note If you assign a set of actions to a key combination that is already being used by Microsoft Access (for example, CTRL+C is the key combination for Copy), the actions you assign this key combination replace the
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top