GailFialho
Registered User.
- Local time
- Today, 03:01
- Joined
- Nov 20, 2001
- Messages
- 34
Hello Anyone . . .
Thank You in advance for any time you might spend helping me with this problem.
Here it is:
First set of tables:
ContractTable
KeyField = ContractID and 30 or so other fields.
ContractHistoryTable
Keyfield = ContractHistoryID
ForeignKey = ContractID and same 30 or so other fields
Contract form.BeforeUpdate
Runs query to append all data in that form, if record is changed, to the ContractHistory table, thereby tracking all changes to every record.
ContractTable related to ContractHistoryTable one to many with Referential Integrity, Cascade Update and Delete, ContractTable LEFT JOIN ContractHistoryTable ON ContractTable.ContractID = ContractHistoryTable.ContractHistoryID;
This setup works perfectly.
Here's my problem:
I have another set of tables for "Contract Opportunities" which is setup EXACTLY the same but the word "Contract" is changed to "Watch" (as in Watch List). All changes to records in WatchTable need to be tracked in the WatchHistoryTable.
Everything is THE SAME!!!!
The append query for the Watch table changes will not run unless I REMOVE the relationship between the WatchTable and the WatchHistoryTable
Message: Records in WatchHistoryTable are required to have a related record in WatchTable.
I've tracked the process, using code breaks, and checked that all the fields contained data.
I have checked over everything I can think of. It's all the same.
I'M TOTALLY STUMPED!

Thank You in advance for any time you might spend helping me with this problem.
Here it is:
First set of tables:
ContractTable
KeyField = ContractID and 30 or so other fields.
ContractHistoryTable
Keyfield = ContractHistoryID
ForeignKey = ContractID and same 30 or so other fields
Contract form.BeforeUpdate
Runs query to append all data in that form, if record is changed, to the ContractHistory table, thereby tracking all changes to every record.
ContractTable related to ContractHistoryTable one to many with Referential Integrity, Cascade Update and Delete, ContractTable LEFT JOIN ContractHistoryTable ON ContractTable.ContractID = ContractHistoryTable.ContractHistoryID;
This setup works perfectly.
Here's my problem:
I have another set of tables for "Contract Opportunities" which is setup EXACTLY the same but the word "Contract" is changed to "Watch" (as in Watch List). All changes to records in WatchTable need to be tracked in the WatchHistoryTable.
Everything is THE SAME!!!!
The append query for the Watch table changes will not run unless I REMOVE the relationship between the WatchTable and the WatchHistoryTable
Message: Records in WatchHistoryTable are required to have a related record in WatchTable.
I've tracked the process, using code breaks, and checked that all the fields contained data.
I have checked over everything I can think of. It's all the same.
I'M TOTALLY STUMPED!