Hello,
my problem is, I have a form with a sub-form that displays results of a certain query. Now, on the main form I have buttons that manipulate this query.
What I want is, after the SQL of this query has been changed, the sub-form to show updated query results based on the changed SQL. When I close and re-open the form, the sub-form shows the most recent query results, but I want this without having to close and re-open the form, how?
In the VBA code, I already the "Requery" method of the sub-form but I guess I need to do something with the querydef object, too....
Thanks in advance!
Victor
my problem is, I have a form with a sub-form that displays results of a certain query. Now, on the main form I have buttons that manipulate this query.
What I want is, after the SQL of this query has been changed, the sub-form to show updated query results based on the changed SQL. When I close and re-open the form, the sub-form shows the most recent query results, but I want this without having to close and re-open the form, how?
In the VBA code, I already the "Requery" method of the sub-form but I guess I need to do something with the querydef object, too....
Thanks in advance!
Victor