leonardokroeger
New member
- Local time
- Yesterday, 17:52
- Joined
- Jul 7, 2011
- Messages
- 4
Hello everybody,
I'm a beginner and still trying to understand Access' logic. My VBA skilled are very limited. I'd say close to the zero limit
Today I'm trying to filter a clients list displayed by a query.
This query lists all clients that still have no entry (their ID saved as foreign key) in another table. I use the query e.g. to populate this table only with "unassigned" clients. The purpose of this table is to be able to have multiple entries for one client in the case of, and only if, all other entries of this same client being marked as disabled.
By now I have only this filter condition for the query: For the foreign key field "is null".
If I want to show in addition only those clients, that have exclusively deactivated entries in the second table I cannot use a filter condition (OR condition) for the field "Active" like the "= False" condition.
Because if a new entry is added, it obviously will be active, but its corresponding client will still show up in the query as it still has one (or more) deactivated entries (as it is a OR condition).
At the same time I want to leave those deactivated entries in the table and also leave them deactivated.
Basically I'd need a filter condition for the field "Active" stating "=False for all FKClient" (FKClient as foreign key).
Do you have a solution for me? I'd be so glad! I'm trying to evade this problem by some update or append query scenarios that fit my needs, but the dilemma described above always applies to everything I find.
Thanks a lot!!
I'm a beginner and still trying to understand Access' logic. My VBA skilled are very limited. I'd say close to the zero limit
Today I'm trying to filter a clients list displayed by a query.
This query lists all clients that still have no entry (their ID saved as foreign key) in another table. I use the query e.g. to populate this table only with "unassigned" clients. The purpose of this table is to be able to have multiple entries for one client in the case of, and only if, all other entries of this same client being marked as disabled.
By now I have only this filter condition for the query: For the foreign key field "is null".
If I want to show in addition only those clients, that have exclusively deactivated entries in the second table I cannot use a filter condition (OR condition) for the field "Active" like the "= False" condition.
Because if a new entry is added, it obviously will be active, but its corresponding client will still show up in the query as it still has one (or more) deactivated entries (as it is a OR condition).
At the same time I want to leave those deactivated entries in the table and also leave them deactivated.
Basically I'd need a filter condition for the field "Active" stating "=False for all FKClient" (FKClient as foreign key).
Do you have a solution for me? I'd be so glad! I'm trying to evade this problem by some update or append query scenarios that fit my needs, but the dilemma described above always applies to everything I find.
Thanks a lot!!