vbams-accesssubform

Requery Datasheet in Subform from Main form


I am using Access 2013.

I am coding a requery on a datasheet inside a subform.

My setup:

This is when the issue starts

I know I need to use something with Forms!subform!form.requery.

Here is an image of the form:
enter image description here

Edit:
(Main_Hub) has navigation button that has target (Task_List).
Task_List form contains 1 button to add task and 3 Datasheet forms (Task_Form_Priority_1_High), med, and low.
Those datasheet use queries as there record source (Task_Query_Priority_1_High), med, low.


Solution

  • You can trim down through all the forms in the following way:

    Forms!Main_Hub!Task_List.Form!Task_Form_Priority_1_High.Form.Requery
    

    The general syntax is:

    Forms!MainForm!SubFormControlName1.Form!SubformControlName2.Form