Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Button to add new record positioned at top of continuous form

Posted on 2013-06-15
2
Medium Priority
?
1,001 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 49

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 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