Question : Refresh chart in subform when another subform data is entered

I have a main form with a subform where data is entered. When the subform data is entered, the three charts (which are subforms) should update.

I am attaching the sample database. Use frmQualityControl.

When the L, a, and b columns in sbfDataSheetA are populated, chtA, chtL, and chtb should update immediately. The only was I can get them to update now is to close the form and reopen.
Attachments:
 
sample db
 

Answer : Refresh chart in subform when another subform data is entered

This could be simplified enourmously if you used standard charts, instead of Pivot charts.
(none of your charts are interactive)

You really need to consider "Consolidating" your code, so that redundant operations are "Called" from a dedicated sub, and not repeated for every textbox.
;-)

(You may also want to move all the code from the individual textboxes to the AfterUpdate event of the subform.)

But if you want a Brute force solution, ...just put this in every AfterUpdate event:
    Me.Parent.Requery

;-)

JeffCoachman

   
Random Solutions  
 
programming4us programming4us