?
Solved

How open datasheet form to new record

Posted on 2014-12-22
3
Medium Priority
?
270 Views
Last Modified: 2014-12-22
I have a form opening in datasheet view.  But when it opens I want the focus to be on a new record.  How can this be done?
0
Comment
Question by:SteveL13
[X]
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
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40512949
1. set the Data Entry property to Yes
2. or open the form in Dataentry mode
    docmd.OpenForm "formx",,,,acFormAdd
0
 
LVL 18

Accepted Solution

by:
Simon earned 2000 total points
ID: 40512955
One way is to put this into the form.Open event

DoCmd.GoToRecord , , acNewRec
0
 

Author Comment

by:SteveL13
ID: 40512956
And the form is opened with:

DoCmd.OpenForm "frmFormName", acFormDS, , , acFormEdit, acWindowNormal

Because I do want the other records to display.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

752 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