I have a continuous form that is a sub form. The record source for the sub form is a query. When a field on the main form is updated the query is updated to reflect the correct data, however, the issue I am running into is that the sub form's data does not update until I click on the refresh all button from the ribbon. Does anyone know how to get the form to update either by built in functions or by using VBA which would be preferable? The me.Refresh does not work. I have done both the following and it does not seem to update.
Private Sub Form_Activate()
Me.Refresh
End Sub
I have also tried this
Private Sub Form_Load()
Me.Refresh
End Sub
The sub from is in a tab and so I have also tried
Private Sub TabName_Click()
DoCmd.Requery
End Sub
Also this
Private Sub TabName_Click()
Me.SubFormName.Requery
End Sub
I am new to VBA so any help would be greatly appreciated.
Thanks