G
Guest
Hello all,
I am trying to change the filter on a subform via code at the click of a
button. The subform will always have [Project Manager] as the master and
child fields, but I want to toggle b/w the following WHERE conditions at the
click of a button.
[Current Status]= '12. Project Complete'
[Current Status]<>'12. Project Complete'
These will change the data in the sub b/w current and completed projects.
I am sure I can figure out the IF function just fine, but how do I set the
filter of a subform when clicking a button on the parent?
Me.Subform.Filter seems like it should work but doesn't. Am I missing
something?
Thanks for all the help in advance.
Adam
I am trying to change the filter on a subform via code at the click of a
button. The subform will always have [Project Manager] as the master and
child fields, but I want to toggle b/w the following WHERE conditions at the
click of a button.
[Current Status]= '12. Project Complete'
[Current Status]<>'12. Project Complete'
These will change the data in the sub b/w current and completed projects.
I am sure I can figure out the IF function just fine, but how do I set the
filter of a subform when clicking a button on the parent?
Me.Subform.Filter seems like it should work but doesn't. Am I missing
something?
Thanks for all the help in advance.
Adam