Options

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Hi,

I know how to create a button "Go" to the form but I have no way to press
"Enter" on the keyboard to go the form instead of using "GO" button. Is
there a code for either Enter on the key or Go for me to use either "Enter"
on the keyboard or clicking "GO" button.

Your help would be much appreciated.
Thanks
 
Here are two options to consider:
1. Set up your form in such a way that the Go button is the next control in the
tab order when you wnat to go to the other form. You will then be able to press
Tab and then Press Enter to go to the other form
2. Set up your form in such a way that the Go button is the last control in the
tab order of your form. Then set up the Tab to take you to the last control
rather than the next control. You will then be able to press Tab at any time
which will put the focus on the Go button and then you can press Enter to go to
the other form


--
PC Datasheet
A Resource for Access, Excel and Word Applications
(e-mail address removed)
www.pcdatasheet.com

· Design and basic development for new applications
· Additions, Modifications and "Fixes" for existing applications
· Mentoring for do-it-yourselfers who want guidance
· Complete application design and development
· Applications Using Palm Pilot To Collect Data And
Synchronize The Data Back To Access Or Excel
 
If you set the default property of the button to true then it will activate
by pressing enter. Similarly the cancel property is used when you want the
button to activate when esc is pressed. You can also set a hotkey by typing
a & in front of one of the letters in the button's caption - eg type &Go as
the caption and then the G will appear underlined and you can press alt-G to
activate the button.
 
Back
Top