SteveL13
asked on
Filter a subform based on a checkbox
I have a form that has a sub-form. The subform is a datasheet. On the main form is a checkbox named chkPrint. when the user clicks the checkbox I want only the records in the subform to show those with a Code that equals "P".
Here is what I have but it doesn't work.
Me.subfrmVendorList.Form.F ilter = "Code =" & chkbxPrint.Value
Me.subfrmVendorList.Form.F ilterOn = True
Here is what I have but it doesn't work.
Me.subfrmVendorList.Form.F
Me.subfrmVendorList.Form.F
Daniel's solution should work.....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Curious if you tried the code I proposed earlier, if you experienced any issues?
ASKER
It does work. Just a lot more code. Right?
Open in new window