Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 442
  • Last Modified:

Access 2010 Enter Key Closes DB in Form View

Hi Experts,

I can't figure out what I did to my forms so that when Enter is pressed, the DB is closed.  The forms titled "Old.." in the attached file don't do it so I'm assuming it's something in the new forms I've created.  Thank you in advance for you help!
Menus.accdb
0
Skip Sleeper
Asked:
Skip Sleeper
1 Solution
 
Rey Obrero (Capricorn1)Commented:
it is the form "frmSwitchboard"
the control that is having the focused is the "cmdQuitAccess"

so when you hit Enter it closes  your db.

changed the Tab order of the controls, so that the  "cmdQuitAccess" is not the one active when you open your form "frmSwitchboard"


the other command button "Items" also have the command to quit access.
you need to change the code to do what it should do
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now