G
Guest
I am trying to use the Filter and FilterOn properties of a subform. If I was
writing the code in the subform, I would use the following code:
Me.Filter=strWhere
Me.FilterOn True
I thought that if I needed to code this same function at the main form's
level, all I would have to do is the following as a result:
Me.subForm.Form.Filter=strWhere
Me.subForm.Form.FilterOn True
However when I try to run the code, it gives me a compile error for the
FilterOn property.What changes to the code do I need to make in order to turn
on the filter?
writing the code in the subform, I would use the following code:
Me.Filter=strWhere
Me.FilterOn True
I thought that if I needed to code this same function at the main form's
level, all I would have to do is the following as a result:
Me.subForm.Form.Filter=strWhere
Me.subForm.Form.FilterOn True
However when I try to run the code, it gives me a compile error for the
FilterOn property.What changes to the code do I need to make in order to turn
on the filter?