Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a Form to a new Record

Status
Not open for further replies.

Mike555

Technical User
Feb 21, 2003
1,200
US
By default, when opening an Access form the first record entered into the form is displayed. How can a form be setup to open to a new record, instead of displaying existing records first?

Thanks.
 
This works in A2K and I believe in A97, don't know about others.

DoCmd.OpenForm "frmFormName", , , , acFormAdd "The Key, The Whole Key, and Nothing But The Key, So Help Me Codd!"
 
That's good cause I'm using A2K.

Can this statement be created with an On Open Event in the properties of the Form? If so, what would the code look like? (I'm horrible with VBA.) Thanks.
 
If you want a particular form to open in Add mode regardless of how it is opened set it's Data Entry property to Yes. This is found on the properties sheet on the Data tab.

"The Key, The Whole Key, and Nothing But The Key, So Help Me Codd!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top