Solved

How open datasheet form to new record

Posted on 2014-12-22
3
241 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
3 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…
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…

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now