A
alex
I have a subform that’s based on a query. The subform is obviously on
a main form.
When I open the main form, the subform is blank (even though there
should be data).
I have code behind one of my cmdbuttons that requerys the subform.
This works great when the cmdbutton is clicked. Basically I can
requery the subform with an on click event…I want the on load event to
do the same!
How can I requery the subform (so there’s data there) when the form
opens/loads?
I have tried putting:
Me.sfrmMySubform.requery
Or
sfrmMySubform.requery
In every possible place…it does not work.
My thought is, there’s no data in the query (since it’s tied to the
main form) until AFTER the form loads; but I don’t know.
Any thoughts?
alex
a main form.
When I open the main form, the subform is blank (even though there
should be data).
I have code behind one of my cmdbuttons that requerys the subform.
This works great when the cmdbutton is clicked. Basically I can
requery the subform with an on click event…I want the on load event to
do the same!
How can I requery the subform (so there’s data there) when the form
opens/loads?
I have tried putting:
Me.sfrmMySubform.requery
Or
sfrmMySubform.requery
In every possible place…it does not work.
My thought is, there’s no data in the query (since it’s tied to the
main form) until AFTER the form loads; but I don’t know.
Any thoughts?
alex