Automatically update Subform control

Fozi

Registered User.
Local time
Today, 10:57
Joined
Feb 28, 2006
Messages
137
Hi

On my Parent form I have the Control [TotalHrs] which contains a numeric value. A subform called [FRM_Flexi] has a control called [FlexiTot].

What is want is for [FlexiTot] to automatically change according to the change in [TotHrs].

I've tried putting in Me.FlexiTot.Requery in the [TotHrs] AfterUpdate and On Change properties but to no avail.

The only time the [FlexiTot] control shows the updated value is if I exit and re-enter the Parent Form.

Thanks
Fozi
 
You could try this in the After_Update of TotalHrs:

Code:
Me.FRM_Flexi.Form.FlexiTot.Requery

JR
 
Thanks Jan but unfortunately it didn't seem to make a difference. Will try it with the On Change property

Thanks
Fozi
 
Will try it with the On Change property

No use the after_update but change "Requery" to another methode. Requery will work on combobox/listbox but i don't think it works on textboxes.

Try Recalc or perhaps refresh

JR
 

Users who are viewing this thread

Back
Top Bottom