P
PGZ
I have 2 tables a Property table and an Ownership table ,
which have distinctly different data and a common field.
My "Record Source" which populates the detail section of
the
form is an SQL Query which joins the 2 tables by the "Prop
ID"
and "Entity ID", respectively. Fields from both tables
appear on the form (via the Query).
The form is set to Allow Deletions.
The "Prop ID" field in the Property table is a Primary
Key. When
I delete a record, if the "Entity ID" field in the
Ownership
table is a Primary Key or is Indexed ("No Duplicates"),
the respective records from both tables are deleted.
If the "Entity ID" in the Ownership table is NOT a Primary
Key nor is Indexed, only the record in the Ownership table
is deleted, WHICH IS WHAT I WANT.
Why is this happening?
How can I have the "Entity ID" in the Ownership table as a
Primary Key or Indexed ("No Duplicates") and delete only
the record in the
Ownership table?
I need the "Entity ID" in the Ownership table to be
a Primary Key or Indexed ("No Duplicates").
Thank you for your help,
PGZ
which have distinctly different data and a common field.
My "Record Source" which populates the detail section of
the
form is an SQL Query which joins the 2 tables by the "Prop
ID"
and "Entity ID", respectively. Fields from both tables
appear on the form (via the Query).
The form is set to Allow Deletions.
The "Prop ID" field in the Property table is a Primary
Key. When
I delete a record, if the "Entity ID" field in the
Ownership
table is a Primary Key or is Indexed ("No Duplicates"),
the respective records from both tables are deleted.
If the "Entity ID" in the Ownership table is NOT a Primary
Key nor is Indexed, only the record in the Ownership table
is deleted, WHICH IS WHAT I WANT.
Why is this happening?
How can I have the "Entity ID" in the Ownership table as a
Primary Key or Indexed ("No Duplicates") and delete only
the record in the
Ownership table?
I need the "Entity ID" in the Ownership table to be
a Primary Key or Indexed ("No Duplicates").
Thank you for your help,
PGZ