?
Solved

Command Button problem..

Posted on 2003-12-02
3
Medium Priority
?
374 Views
Last Modified: 2010-05-18
Hi experts,
I have a few buttons  in my application ; for example "enter" "close" "stop" buttons
after user have fill in the inputs, usually user need to click on the "enter" button to proceed.
Instead of clicking the button, how can i make it so that user can just push Enter on the keyboard and the "enter" button in my application will automatically clicked. Meaning that i wannt to avoid using mouse.

i have mention a have a few buttons, so maybe in simple words, i want to make "enter" button to be default button so that i just need to push Enter on the keyboard to activate it instead of clicking on it.

i hope my question is clear.. :)
0
Comment
Question by:michelle_branch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 39

Accepted Solution

by:
appari earned 150 total points
ID: 9864129
set the default property of the command button to true.
0
 
LVL 1

Expert Comment

by:MsLim
ID: 9864198
set the tabindex order in the right sequence , upon complete enetring let say the last field tabindex order is 20 , the this enter command button must be set as 21 . so that you can press enter upon complete last line and press tab key.

the others way is set the caption of this enter button with one character is underline and this underline character must unique in this form (eg E is underline).then upon finish entering , User can just press Alt key with e key together
0
 

Author Comment

by:michelle_branch
ID: 9864558
waa.. so easy aa..
i lost 50 points just for this easy one.. huhu
nevermind laa.. i owe you 2 times Appari.. thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question