Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 October 16th, 2003, 10:16 AM
Authorized User
Join Date: Oct 2003
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default Refreshing controls on a subform

I have a subform based on a query. I have set the afterupdate event of one of the controls to do some calculations based on it's contents and the value of a checkbox. The result in placed into a third control. When I open the form and enter a value into the first control, 0.00 is displayed in it and the one that should display the result. If I go to another record and return, the display is correct. I tried using the Requery Method, but that doesn't seem to have any effect. Any help would be greatly appreciated.

Old October 16th, 2003, 10:35 AM
sal sal is offline
Friend of Wrox
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts

Try to requery the subform on the OnKeyPress event. You may need to do some error checking on the event as well


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing a Gridview takwirira ASP.NET 2.0 Basics 1 January 9th, 2008 01:13 AM
Subform Record Saved, Update/Requery Form controls CB-VTXer Access VBA 2 August 6th, 2007 02:35 PM
Refreshing the listbox faizee36 Access VBA 0 April 11th, 2006 04:17 AM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM

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