I have a table in which a number of records get lost, most likely after
compacting the database.
The relevant table structure is as:
Table Tasks with a primary key TaskID (Autonumber)
Table Enquiries with primary key EnquiryID and foreign key TaskID (long
integer)
A relationship between the tables (on TaskID) includes cascading
deletes.
Not all enquiries relate to a task and so some records in the Enquiries
table have a null value for TaskID.
Records have on two occasions disappeared from the Enquiries table
(possibly, but not certainly after compacting). The missing records
appear to be those with a null value in TaskID.
Is this what one should expect after compacting?
I expect someone will advise me to redesign the table structure.
Jim