Hello everyone
I have a table in my database that records the work done, this work could be either a repair of an accident or new work. So what I did is designated the work table as a super-type and two other tables (accident and NewWork) as sub-types as follows:
tbl_Work
pk_WorkID
fk_StateID
fk_VillageID
fk_StreetID
Location
Deleted
tbl_Accident
pk_WorkID
AccidentNumber
fk_SupervisorID
fk_StatusID
tbl_NewWork
pk_WorkID
NewWorkNumber
fk_StatusID
I connected the super-type table with the other two sup-types tables using the pk_WorkID field as a primary key in both the super and sub tables as one to one relationship, what I want to do is force the user to full all the fields in the super and sub table before allowing him to commit the record, I tried doing that by changing the required filed property to yes in all the fields, but what happened is that if the user stops exactly after he fills the last field of the super type table the entries gets committed to the table but without a corresponding record in either of the sub type tables and this creates a data integrity issue in my database.
how can I force the user to full both records in the super type and sub type tables before the entries gets committed to the table ?