G
gaugust
I am having a problem with requerying combo box controls on my subform. In
the after update event for the subform I have the following code to requery
one of the combo boxes:
Me![icudx2].Requery
What is happening is that the selection made in the combo boxes for record 1
is being cleared when I select the combo box for record two.
In Access 2003 I have a subform that is linked to the main form with a
linked field called studyid. The source for the main form is tblsection3 and
the source for the subform is tblDiagnosis. There is a one to many
relationship between the tables with referencial integrity not checked (also
have tried this with referencial integrity checked). On the subform I have
three combo boxes called idcux, idcux2 and idcux3. The source for combo box
idcux is a table called Diagnosis. The source for combo box idcux2 is a query
on table Diagnosis2 that is dependent on the value in combo box idcux. The
source for idcux3 is a query on table Diagnosis3 that is dependent on the
value in combo box idcux2.
I would expect that the after update event would only requery the combo
boxes for the current record and would not clear the prior record's
selections. How can I get Access to only requery the current record's combo
boxes?
the after update event for the subform I have the following code to requery
one of the combo boxes:
Me![icudx2].Requery
What is happening is that the selection made in the combo boxes for record 1
is being cleared when I select the combo box for record two.
In Access 2003 I have a subform that is linked to the main form with a
linked field called studyid. The source for the main form is tblsection3 and
the source for the subform is tblDiagnosis. There is a one to many
relationship between the tables with referencial integrity not checked (also
have tried this with referencial integrity checked). On the subform I have
three combo boxes called idcux, idcux2 and idcux3. The source for combo box
idcux is a table called Diagnosis. The source for combo box idcux2 is a query
on table Diagnosis2 that is dependent on the value in combo box idcux. The
source for idcux3 is a query on table Diagnosis3 that is dependent on the
value in combo box idcux2.
I would expect that the after update event would only requery the combo
boxes for the current record and would not clear the prior record's
selections. How can I get Access to only requery the current record's combo
boxes?