Hi!
I have tried googling this but I am unable to find anything close to what I need.
Basically I have a form: frmdirectory, which has a subform frmcontacts2.
Now basically the subform displays all the contacts stored in the directory. Each contact has three checkboxes columns: NGO, GOPC and Donors. Now each contact belongs to one of these groups. Ie: an organisation x's NGO box is ticked.
Now I have a btnView in the main form, next to three unbound checkboxs: chkNGO, chkGOPC and chkDonors. Now what i want is a vba code for the onclick event of the button which will display all the contacts that has the related checkbox ticked. For example is a user ticks chkNGO and chkGOPC, then the subform displays all contacts who has their NGO and GOPC checkboxes ticked.
What vba code can I use for this?
I have tried googling this but I am unable to find anything close to what I need.
Basically I have a form: frmdirectory, which has a subform frmcontacts2.
Now basically the subform displays all the contacts stored in the directory. Each contact has three checkboxes columns: NGO, GOPC and Donors. Now each contact belongs to one of these groups. Ie: an organisation x's NGO box is ticked.
Now I have a btnView in the main form, next to three unbound checkboxs: chkNGO, chkGOPC and chkDonors. Now what i want is a vba code for the onclick event of the button which will display all the contacts that has the related checkbox ticked. For example is a user ticks chkNGO and chkGOPC, then the subform displays all contacts who has their NGO and GOPC checkboxes ticked.
What vba code can I use for this?