L
Laurel
I have a combo box in a subform that is on a tabpage. It is filtered on
the value of a field in the parent form. The contents of the combo box
look good when I'm sitting on the first row of the parent form. But if I
move to other records, it keeps filtering based on the value in the first
row.
I hypothesise that I need to refresh it by hand, and so I tried putting the
following code in the change event of the tab control:
Contact_ID is the name of the combo box.
Private Sub TabFunders_Change()
Forms!frmFunderEntry!ctrlGrantsSub.frmGrantsSub!Contact_ID.Requery
End Sub
At runtime I get this error on the line of code above:
runtime error 438
Object doesn't support this object or method.
When I try execute the Requery method on a simple combo box from it's own
context (no subforms and stuff), .Requery seems to be OK. That is, I put
this line of code above the offending line... Me!cboFind.Requery. There's
no error there.
1 - Am I taking the right approach in general?
2 - What's wrong with the syntax I'm using to refresh the dropdown?
the value of a field in the parent form. The contents of the combo box
look good when I'm sitting on the first row of the parent form. But if I
move to other records, it keeps filtering based on the value in the first
row.
I hypothesise that I need to refresh it by hand, and so I tried putting the
following code in the change event of the tab control:
Contact_ID is the name of the combo box.
Private Sub TabFunders_Change()
Forms!frmFunderEntry!ctrlGrantsSub.frmGrantsSub!Contact_ID.Requery
End Sub
At runtime I get this error on the line of code above:
runtime error 438
Object doesn't support this object or method.
When I try execute the Requery method on a simple combo box from it's own
context (no subforms and stuff), .Requery seems to be OK. That is, I put
this line of code above the offending line... Me!cboFind.Requery. There's
no error there.
1 - Am I taking the right approach in general?
2 - What's wrong with the syntax I'm using to refresh the dropdown?