I'm sure this has been answered before but I can't find it and the Object model isn't making the answer obvious to me either...
Is there syntax to force a requery of all subforms on a form (without referring to them explicitly by name)? I want to put that in the AfterUpdate event of a textbox on the parent form. Something simple and generic like:
Form.Subforms.Requery
Loosely related question: is it good practice to use the value of a text box on a form in a query for a subform? i.e. using the following in the query criteria::
=[Forms]![Dashboard]![TasksDueByDate]
It works, I'm just wondering what happens if the form with the text box isn't open (which could happen if I use this subform on another form). Does this cause potential problems, or is it the accepted way to pass a user-supplied value from a form to a subform query?
VBAjedi
Is there syntax to force a requery of all subforms on a form (without referring to them explicitly by name)? I want to put that in the AfterUpdate event of a textbox on the parent form. Something simple and generic like:
Form.Subforms.Requery
Loosely related question: is it good practice to use the value of a text box on a form in a query for a subform? i.e. using the following in the query criteria::
=[Forms]![Dashboard]![TasksDueByDate]
It works, I'm just wondering what happens if the form with the text box isn't open (which could happen if I use this subform on another form). Does this cause potential problems, or is it the accepted way to pass a user-supplied value from a form to a subform query?
VBAjedi