?
Solved

Button to add new record positioned at top of continuous form

Posted on 2013-06-15
2
Medium Priority
?
968 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
[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
2 Comments
 
LVL 48

Accepted Solution

by:
Dale Fye earned 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

801 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