S
Sheryl
My form has an unbound combobox 'category', and a subform
based on a query which includes a field 'category'. The
query's Criteria field forces the subform to display only
records whose category matches the value in the combox.
I am trying to write an OnClick subroutine for the combo
box so that changing the category refreshes the subform.
But I don't seem to identify the subform properly, and the
program aborts with an error. The form is 'frmRunId', the
combo box is 'CategoryBox', the subform is 'sfrmParms',
and the query is 'qryParms'. What is the correct syntax?
I have tried the following (in CategoryBox_Click); program
aborts on 2nd line:
Dim parms as Control
Set parms = Forms!sfrmParms
parms.Refresh
based on a query which includes a field 'category'. The
query's Criteria field forces the subform to display only
records whose category matches the value in the combox.
I am trying to write an OnClick subroutine for the combo
box so that changing the category refreshes the subform.
But I don't seem to identify the subform properly, and the
program aborts with an error. The form is 'frmRunId', the
combo box is 'CategoryBox', the subform is 'sfrmParms',
and the query is 'qryParms'. What is the correct syntax?
I have tried the following (in CategoryBox_Click); program
aborts on 2nd line:
Dim parms as Control
Set parms = Forms!sfrmParms
parms.Refresh