Quick Key

S

Sue Compelling

Hi

I would like to create a "quick key" to allow my user to navigate quickly to
the field "NewNotes" in my form "FrmContacts"

How do I do this?

TIA
 
L

Linq Adams via AccessMonster.com

There’s a number of ways to do this. Create a command button and use this
code:

Private Sub GotoNewNotes_Click()
NewNotes.SetFocus
End Sub

Or set the Form’s Key Preview Property to Yes, and then use this:

Private Sub form_keydown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyF5
NewNotes.SetFocus
End Select
End Sub

Now hitting <F5> will send focus to the field.
 
K

Keith Wilby

Sue Compelling said:
Hi

I would like to create a "quick key" to allow my user to navigate quickly
to
the field "NewNotes" in my form "FrmContacts"

How do I do this?

Use the mouse to hover over it and left-click. Sorry, but that's the
quickest method I know! You could set the tab order accordingly I suppose
....

Keith.
www.keithwilby.com
 
N

NEWER USER

Try using the macro Autokeys. Very easy to create when using a lot of Quick
Keys. Search Autokeys in Help for instructions.
 
S

Sue Compelling

Hi Link

Thanks for the reply. Have followed your instructions and it comes back
with a "compile error - method or data member not found" and highlights the
..setfocus.

Also - I'd like the quick key to be CTL N - how would I change the code to
reflect this?

TIA

Sue ...
 
M

mroks via AccessMonster.com

Sue said:
Hi

I would like to create a "quick key" to allow my user to navigate quickly to
the field "NewNotes" in my form "FrmContacts"

How do I do this?

TIA

On the Form Properties of FrmContacts

ON LOAD Events
me.NewNotes.setfocus
 
S

Sue Compelling

Thanks Link - my bad - my control name was wrong. All fixed now - thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top