Solved

Prevent Tab from creating new record

Posted on 2014-02-24
3
987 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 36

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

685 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