I am looking for some basic help in understanding and setting up table relationships in Access.
I've created one table called PROJECTS and it has the field JobNo which I've declared as the key field. It also contains such fields as Rep, Date, Descrip and so on.
I also have another table called DETAILS and it contains the following fields: ID (key field), JobNo, Rep, Date, Contact, PhNum, FileLoc and so on.
I have created a relationship between PROJECTS and DETAILS using the JobNo field from PROJECTS (the "1" side) to the JobNo field of DETAILS (the "infinity" or many side). Since JobNo from the PROJECTS table is a key field, I am able to turn on "Enforce Referential Integrity" and I select both "Cascade... " options.
My goal is to have the relationship link matching JobNo fields from both tables together, and to have fields with the DETAILS table automatically update if a matching field exists within the PROJECTS table. For example, after creating the relationship I expected to change Rep from the PROJECTS table and have it propagate over to the Rep field in the DETAILS table -- dint happen. Like fields from both tables are declared with the same formatting features, by the way (both Text or Number, same length, no conditions, etc.). Also, I made sure the key field's Indexed property from the parent table was set to YES (No Duplicates).
Despite the relationship between the two tables, matching fields within both tables behaves as if they are completely unique; I can update the Rep field in DETAILS and nothing happens in the Rep field of PROJECTS, and vice versa.
This description is much longer than I anticipated, but if anyone has some pointers on establishing relationships I am 100% ears.
Thanks in advance.
I've created one table called PROJECTS and it has the field JobNo which I've declared as the key field. It also contains such fields as Rep, Date, Descrip and so on.
I also have another table called DETAILS and it contains the following fields: ID (key field), JobNo, Rep, Date, Contact, PhNum, FileLoc and so on.
I have created a relationship between PROJECTS and DETAILS using the JobNo field from PROJECTS (the "1" side) to the JobNo field of DETAILS (the "infinity" or many side). Since JobNo from the PROJECTS table is a key field, I am able to turn on "Enforce Referential Integrity" and I select both "Cascade... " options.
My goal is to have the relationship link matching JobNo fields from both tables together, and to have fields with the DETAILS table automatically update if a matching field exists within the PROJECTS table. For example, after creating the relationship I expected to change Rep from the PROJECTS table and have it propagate over to the Rep field in the DETAILS table -- dint happen. Like fields from both tables are declared with the same formatting features, by the way (both Text or Number, same length, no conditions, etc.). Also, I made sure the key field's Indexed property from the parent table was set to YES (No Duplicates).
Despite the relationship between the two tables, matching fields within both tables behaves as if they are completely unique; I can update the Rep field in DETAILS and nothing happens in the Rep field of PROJECTS, and vice versa.
This description is much longer than I anticipated, but if anyone has some pointers on establishing relationships I am 100% ears.
Thanks in advance.
Comment