Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2008, 11:29 PM
Registered User
 
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default change position of New Record row?

How can I make the blank New Record row appear at the top of a datasheet rather than at the bottom?? I would like to be able to do this for tables themselves as well as forms and subforms in datasheet view.

Thanks for your help!

 
Old June 23rd, 2008, 03:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Welcome to P2P. That is a very interesting question. As far as I know, new records seen in datasheet view of a subform always show up at the bottom. There is no setting to put it on the top. It would make sense to do that, say, if you sorted by latest date on top and wanted new entries to appear on top.

Barring anything I'm not aware of, you can set the datasheet view NOT to allow additions. It will get rid of the that last line. Then you can put textboxes on the main form with a SUBMIT or ADD button. People can enter the new data up there on top (or wherever you want). When the user clicks ADD, the record is added to the subform.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old June 24th, 2008, 10:34 PM
Registered User
 
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Greg. Real estate on my form is a bit of an issue, so I was hoping to be able to add new records to a subform right onto the subform datasheet.

Problem is, the user has to scroll down to find the new record row, or else (if I set the form to go to the new record row on load), forgoes seeing the first rows of the table, which are important to the context of the project.

I suppose I could reverse sort, but the subform is a kind of timeline/calendar so it would be a little odd to have the dates going in reverse order.

Anyway, it is reassuring to know that I am not missing something simple (just started playing with Access a few weeks ago).

Thanks for your help and let me know if you ever come across a way to do this.

Kimber

 
Old June 27th, 2008, 07:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Well, as before, keep the datasheet Allow Additions = False; and then if you're short on real estate you can put ONE little "Add" button on the form. When they click it, a second pop-up form will appear allowing you to enter the new data. You click the OK button on that 2nd form and it closes, refreshes the list, and sticks the new data on the list.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
xml tag position change rajesh_css XSLT 1 November 3rd, 2008 04:25 AM
SSTab row position dthrun VB How-To 3 March 30th, 2007 11:02 PM
Identify physical position of row in gridview wirerider ASP.NET 2.0 Basics 13 October 31st, 2006 01:53 PM
Changing row position of gridview at runtime rameshsamiappan ASP.NET 2.0 Basics 0 September 25th, 2006 10:02 AM
Line/Row Position jmss66 Classic ASP Databases 7 July 28th, 2003 07:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.