Wrox Programmer Forums
|
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 March 12th, 2007, 01:03 PM
Authorized User
 
Join Date: Feb 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Refresh / Repaint

I have a few fields in a form and I'm using the after update event. A calculation of the three fields takes place after an update is made in any of the three fields and places the total in a fourth field. I've also used the refresh and repaint method after the calculation takes place. However, if I'm on, say record 5, after the update, it takes me back to the first record. I need to stay on the current record, not go back to the first record. Any tips in how to fix this?

 
Old March 13th, 2007, 04:14 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

ghall202,

Can I ask why exactly are you using the Refresh AND Repaint methods?

If it is to update the screen, then just use the Repaint method, this will redraw the screen and won't move the recordset back to the first record.

Hope this helps,
Rob






Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh GridView Using Refresh Button msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 05:57 AM
Suspending Repaint aliddle General .NET 0 February 15th, 2005 06:59 AM
refresh crmpicco HTML Code Clinic 7 January 31st, 2005 09:43 PM
Refresh surendran Javascript 7 August 3rd, 2004 05:31 AM





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