Link to home
Start Free TrialLog in
Avatar of mdstalla
mdstalla

asked on

MS Access 2013 Form to open at new record

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
ASKER CERTIFIED SOLUTION
Avatar of Bitsqueezer
Bitsqueezer
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mdstalla
mdstalla

ASKER

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.
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.