Probably another simple question.
I have a form with a subform. The main form has a combobox on it. That combobox has a list of employees in it. The subform displays the result of a query based on an employee id number ( a primary key among the tables queried by the query). "SELECT <lots of things here> FROM <tbl> INNER JOIN <another table> ON <matching criteria> WHERE id = <some number> GROUP BY <criteria> ORDER BY <criteria>"
Now - depending on the selection one of two different queries may need run. So on the subform - I have it linked (control source I believe) to qryData.
What I've been trying to do (and maybe going about it all wrong) is on the onUpdate of the combobox redefine the the actual query to the information required and set the right id number and then requery the form using:
Me.childform.Form.Requery
It goes through everything without error - but the information in my subform doesn't seem to update. If I go to the qeury object itself and open it...it displays the correct information - and when I go into design view (which of course just shows the SQL code) it has the right code. So why doesn't the childform reflect the changE?
I have a form with a subform. The main form has a combobox on it. That combobox has a list of employees in it. The subform displays the result of a query based on an employee id number ( a primary key among the tables queried by the query). "SELECT <lots of things here> FROM <tbl> INNER JOIN <another table> ON <matching criteria> WHERE id = <some number> GROUP BY <criteria> ORDER BY <criteria>"
Now - depending on the selection one of two different queries may need run. So on the subform - I have it linked (control source I believe) to qryData.
What I've been trying to do (and maybe going about it all wrong) is on the onUpdate of the combobox redefine the the actual query to the information required and set the right id number and then requery the form using:
Me.childform.Form.Requery
It goes through everything without error - but the information in my subform doesn't seem to update. If I go to the qeury object itself and open it...it displays the correct information - and when I go into design view (which of course just shows the SQL code) it has the right code. So why doesn't the childform reflect the changE?