Hi, I have a checkbox on parent form ProductInfoMaster, and would like its after-update event to change the filteron property on subform ProductInfoSub. here's my code:
but at the filteron step, i get error "object doesn't support this property or method".
What am i doing wrong?
I also tried resetting the subforms recordsource instead, and i get the same error.
using access 2007.
thanks for any help.
Private Sub includeobso_AfterUpdate()
If Me.includeobso = True Then
Me.Noun.RowSource = "SELECT ProductInfoMaster.Noun FROM ProductInfoMaster GROUP BY ProductInfoMaster.Noun;"
Forms!productinfomaster!productinfosub.FilterOn = False
Else
Me.Noun.RowSource = "SELECT ProductInfoMaster.Noun FROM ProductInfoMaster where status<>'obsolete' GROUP BY ProductInfoMaster.Noun;"
Forms!productinfomaster!productinfosub.FilterOn = True
End If
Me.productinfosub.Requery
End Sub
but at the filteron step, i get error "object doesn't support this property or method".
What am i doing wrong?
I also tried resetting the subforms recordsource instead, and i get the same error.
using access 2007.
thanks for any help.