MS Access 2013 Form to open at new record

Posted on 2013-12-27
Last Modified: 2014-08-09
I hate to ask you guys such a seemingly basic question… but no matter what I try, I can’t get Access to open my Navigation Form to a new record (it keeps opening to the first record).
Starting with the Form: “Introduction,” I would simply like to create an event where if the Control Button ‘Start New Interview’ is clicked, then Form: “Master Navigation Form” opens to a blank, new record.
Simple methods like using the Macro Building ‘Go to New Record’ or DoCmd.GoToRecord , , acNewRec, just don’t seem to want to work.
Can anyone look at my database and help me figure this out?
Question by:mdstalla
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
LVL 24

Accepted Solution

Bitsqueezer earned 500 total points
ID: 39742948

I do not have A2013 but to go to a new record the first thing you must make sure is that this form contains a recordset which allows adding new records. Go to the last record and see if there is one with an asterisk at the record selector showing you can add a new record.

If that's the case the DoCmd command should work. Of course the setting "AllowAdditions" of the form must be set to True. You can also directly set the "DataEntry" setting to True, this will keep out any existing records from your form and only allows to enter a new one.



Author Comment

ID: 39743025
Yes, the record selector does have an icon with an * for adding a new (blank) record.  I set 'Allow Additions' to True and even set 'Data Entry' to True.  

The form still opens at my first record.
LVL 85
ID: 39743053
You have multiple nested subforms, so you have to use some convoluted syntax to get there:
DoCmd.OpenForm "Master Navigation Form"
Forms("Master Navigation Form").NavigationSubform.Form.NavigationSubform.Form.Recordset.AddNew

Open in new window

FWIW, I don't see the need for that level of subform. At most, you'd need a single level of subforms, with your tab control on that.

Featured Post

Independent Software Vendors: 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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

734 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