In a Customers form I have two fields, a name in AccountManager and a tick box for Sponsor.
I'm using the AccountManager name as criterion for a query that selects customers assigned to that person. So far easy. But, any customers marked Sponsor also needs to be included in one person's output, for example.
So in simplified form the query is on a table like this, with fields AccountManager, Sponsor, Customer and with Dave been the person who needs to include all sponsors.
Mike Yes Customer1
Mike No Customer2
Mike No Customer3
John Yes Customer4
John No Customer5
Dave Yes Customer6
Dave No Customer7
Dave Yes Customer8
The results when passing different names to the query need to be like this
If Mike, Customers 1, 2, 3
If John, Customers 4, 5
If Dave, Customers 1, 4, 6, 7, 8
How do I create criteria so that everyone other than Dave only get people assigned to them but Dave also gets anyone ticked as Sponsor?
I'm using the AccountManager name as criterion for a query that selects customers assigned to that person. So far easy. But, any customers marked Sponsor also needs to be included in one person's output, for example.
So in simplified form the query is on a table like this, with fields AccountManager, Sponsor, Customer and with Dave been the person who needs to include all sponsors.
Mike Yes Customer1
Mike No Customer2
Mike No Customer3
John Yes Customer4
John No Customer5
Dave Yes Customer6
Dave No Customer7
Dave Yes Customer8
The results when passing different names to the query need to be like this
If Mike, Customers 1, 2, 3
If John, Customers 4, 5
If Dave, Customers 1, 4, 6, 7, 8
How do I create criteria so that everyone other than Dave only get people assigned to them but Dave also gets anyone ticked as Sponsor?