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 July 27th, 2010, 11:08 PM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default subform not updating immediately

I've got 2 subforms, one is a datasheet input screen (5 records) and the other subform shows the average of the five records.

After I update a single recordset in subform 1, I need the subform 2 to reflect the updated average of the 5 records.

Subform 2 is always one update behind.

I am using an After Update in subform1 to recalculate subform 2.

For Example:
Subform 1 has (10, 10, 10, 10, 10)

Change the first recordset to 20 (Data is now 20, 10, 10, 10, 10)
Subform2 average is still 10.

Change the first recordset back to 10 (Data is now 10,10,10,10,10)
Subform 2 average is now 12.

What am I missing?
Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
MS ACCESS UPDATING A SUBFORM FIELD bernieregans SQL Language 1 February 3rd, 2006 04:26 PM
updating main form from subform dartcoach Access 6 April 28th, 2005 08:27 AM
Updating data in a subform when tables change. Paulsh Access VBA 1 October 6th, 2004 03:49 PM
Please Respond immediately sainaidu SQL Server 2000 2 August 10th, 2003 08:25 AM





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