I want to filter a subform from an option group on the main form.
Basically, when the Onclick fires for the Option group, I want to enter IfThen statements, so that if OptionGroup = 1, then filter the subform so that the Status field = "For Sale"; if OptionGroup=2, then Filter the Subform so the status field = "For Sale" or "On Hold".
I can't seem to get the right syntax--I've tried Docmd.applyfilter; me.subformname.form.filter; and also the Select/From/Where, though I'm not as familiar with the last.
I don't think I can just have the query for the subform bound to the option group, as two of my optiongroup selections need to show more than one "status"
Any suggestions? Thanks...
Basically, when the Onclick fires for the Option group, I want to enter IfThen statements, so that if OptionGroup = 1, then filter the subform so that the Status field = "For Sale"; if OptionGroup=2, then Filter the Subform so the status field = "For Sale" or "On Hold".
I can't seem to get the right syntax--I've tried Docmd.applyfilter; me.subformname.form.filter; and also the Select/From/Where, though I'm not as familiar with the last.
I don't think I can just have the query for the subform bound to the option group, as two of my optiongroup selections need to show more than one "status"
Any suggestions? Thanks...