Access 2003- I have 3 forms:
Main Form- frmProductionForecast
SubForm 1- fsubProductionForecast
SubForm 2- fsubProductionForecastPivotTable
I am trying to requery the subform 2 after updating a field on subform 1(they both use the same table), but to no avail. I can put the code in a command button and it works fine, but I would rather it automatically requery the form once you update the data on form 1. This is the code I have in the After Update event on subform 1.
Private Sub ForecastLbs_AfterUpdate()
Forms!frmProductionForecast.Form!fsubProductionForecastPivotTable.Form.Requery
End Sub
I am not getting any errors, but it is not refreshing the data on Subform 2
Thanks for your help.
Main Form- frmProductionForecast
SubForm 1- fsubProductionForecast
SubForm 2- fsubProductionForecastPivotTable
I am trying to requery the subform 2 after updating a field on subform 1(they both use the same table), but to no avail. I can put the code in a command button and it works fine, but I would rather it automatically requery the form once you update the data on form 1. This is the code I have in the After Update event on subform 1.
Private Sub ForecastLbs_AfterUpdate()
Forms!frmProductionForecast.Form!fsubProductionForecastPivotTable.Form.Requery
End Sub
I am not getting any errors, but it is not refreshing the data on Subform 2
Thanks for your help.