Solved

MS Access 2013 Form to open at new record

Posted on 2013-12-27
3
2,792 Views
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?
muse.accdb
0
Comment
Question by:mdstalla
3 Comments
 
LVL 24

Accepted Solution

by:
Bitsqueezer earned 500 total points
ID: 39742948
Hi,

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.

Cheers,

Christian
0
 

Author Comment

by:mdstalla
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.
0
 
LVL 84
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.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

My experience with Windows 10 over a one year period and suggestions for smooth operation
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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…

809 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