Solved

Button to add new record positioned at top of continuous form

Posted on 2013-06-15
2
881 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
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…

762 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

26 Experts available now in Live!

Get 1:1 Help Now