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

x
?
Solved

MS Access 2013 Form to open at new record

Posted on 2013-12-27
3
Medium Priority
?
3,230 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 2000 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 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.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

972 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