J
Joe C
Trying to understand why I get "no unique index" message in my database
when I try to create a cascading relationship between two of my tables.
Here are the tables involved:
3 Tables joined to each other in the following manners:
Table 1: Establishment: (1 PK field Named "Permit_Number": [Long
Integer])
Table 2: Establishment_Inspection: (Compund PK: "Permit_Number" [Long
Integer], "Inspection_Date" [Date/Time(Medium)]
Table 3: Establishment Violation: (Compund PK; "Permit_Number" [Long
Integer], "Violation_Date" [Date/Time(Medium)], "Violation_Number"
[Long Integer]
Table 1 has a 1-many Join to table 2 via a Permit#.
Table 2 has a 1-1 Join to Table 3 via Permit_Number, Inspection_Date
and Violation_Number (data type the same in each table)
Every time I try to create a cascading query I get a message stating
there is no unique index found in Table 2 (My Primary table). However,
if I change the structure of table 2 so that it has the same primary
key structure to table 3 then the cascade function works with no error
messages.
Very confounding. Thanks in advance for your help!
when I try to create a cascading relationship between two of my tables.
Here are the tables involved:
3 Tables joined to each other in the following manners:
Table 1: Establishment: (1 PK field Named "Permit_Number": [Long
Integer])
Table 2: Establishment_Inspection: (Compund PK: "Permit_Number" [Long
Integer], "Inspection_Date" [Date/Time(Medium)]
Table 3: Establishment Violation: (Compund PK; "Permit_Number" [Long
Integer], "Violation_Date" [Date/Time(Medium)], "Violation_Number"
[Long Integer]
Table 1 has a 1-many Join to table 2 via a Permit#.
Table 2 has a 1-1 Join to Table 3 via Permit_Number, Inspection_Date
and Violation_Number (data type the same in each table)
Every time I try to create a cascading query I get a message stating
there is no unique index found in Table 2 (My Primary table). However,
if I change the structure of table 2 so that it has the same primary
key structure to table 3 then the cascade function works with no error
messages.
Very confounding. Thanks in advance for your help!