Solved

Button to add new record positioned at top of continuous form

Posted on 2013-06-15
2
940 Views
Last Modified: 2013-06-15
I have a continuous form that has a button whose On Click Event is
DoCmd.GoToRecord , , acNewRec
Problem is that the new record is not totally visible, only the top part of it. Is there any way of setting it up so that the new record is positioned at the top of the page or at least that the whole selected record is visible?
0
Comment
Question by:Rob4077
2 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39249878
When you go to the new record, the focus will be set to the first control (in the tab order) of the record.  You can try moving the focus to the last control, and then back to the first, something like:

docmd.gotorecord ,,acnewrec
me.txtLastControlName.setfocus
me.txtFirstControlName.setfocus
0
 

Author Comment

by:Rob4077
ID: 39249922
That did the trick. Thanks.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

749 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