Solved

Prevent Tab from creating new record

Posted on 2014-02-24
3
929 Views
Last Modified: 2014-02-26
I am working on a form with several tab stops.  At the end of the form if the user isn't careful pressing tab saves the current record and starts a new record.  Is there any way to prevent Tab from creating a new record.
0
Comment
Question by:Mwvarner
3 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39883617
You can set the Form's Cycle property to "Current Record", which will keep the user on the same record.

Open the form in Design view and select the Other tab in the Properties dialog, and you'll see the Cycle property.
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 39883819
Access forms are designed to save records.  Any time you move the focus to a new record or close the form, etc.  Access will save the current record.

Changing the Cycle property to Current Record as Scott suggested will keep the user from inadvertently tabbing to a new record but if you are trying to get control of the save process, use the FORM's BeforeUpdate event.  That is the last event that fires before a record is actually saved and you can't avoid it so it is the perfect event to use for final validation and to cancel the save if that is your intention.
0
 

Author Closing Comment

by:Mwvarner
ID: 39888689
Thanks,  That is what I needed.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now