Hi everyone,
I have created an MS Access (using 2010) database to manage clients and assignments. The current database setup has a junction table to keep a track of the clients to assignments relationship, and it is a many-to-many relationship, since one client can have several assignments, and an assignment could potentially have more than one client.
Now, I would like for the user to be able to edit the client-assignment relationship in case a mistake is made during the initial data entry, or a change is required. As such, in order to be able to edit said relationship, the user must be able to see a list of clients who can potentially be associated with a particular assignment in question.
I am thus trying to run a query which will display all clients NOT currently associated with the specific assignment OR who have been removed from the assignment (I have setup the junction table to incorporate a toggle allowing the user to turn off the relationship, thus making it seem the client is no longer associated with said assignment, and avoiding deleted records). My currently query setup is as follows:
the clients table (tblClients)
the junction table (tblJnxClientAs sign)
I have setup the relationship between the two tables to display all of tblClients and only those in Jnx table that are equal.
I am playing around with the criteria, and so far my results have always had individual clients come up multiple times, and already associated clients showing up due to them being assigned to other assignments. Any suggestions on a solution?
MS Access 2010
My SQL is none existent I am afraid, and little in the way of VBA programming, using Macros in this database so far.
I have created an MS Access (using 2010) database to manage clients and assignments. The current database setup has a junction table to keep a track of the clients to assignments relationship, and it is a many-to-many relationship, since one client can have several assignments, and an assignment could potentially have more than one client.
Now, I would like for the user to be able to edit the client-assignment relationship in case a mistake is made during the initial data entry, or a change is required. As such, in order to be able to edit said relationship, the user must be able to see a list of clients who can potentially be associated with a particular assignment in question.
I am thus trying to run a query which will display all clients NOT currently associated with the specific assignment OR who have been removed from the assignment (I have setup the junction table to incorporate a toggle allowing the user to turn off the relationship, thus making it seem the client is no longer associated with said assignment, and avoiding deleted records). My currently query setup is as follows:
the clients table (tblClients)
the junction table (tblJnxClientAs sign)
I have setup the relationship between the two tables to display all of tblClients and only those in Jnx table that are equal.
I am playing around with the criteria, and so far my results have always had individual clients come up multiple times, and already associated clients showing up due to them being assigned to other assignments. Any suggestions on a solution?
MS Access 2010
My SQL is none existent I am afraid, and little in the way of VBA programming, using Macros in this database so far.
Comment