G
Guest
What is the best way to limit the deletion of records based on the results of
3 tables? I have 1) 1 parent table-ContractMain, 2) 1 child related
table-ContractDetail, and an independent table called 3) Billing table. In
the ContractDetail table, it has 4 fields: 1) Agreemt, 2) master_agreemt , 3)
contract_no, & 4) line_item. In the MainContract table, it has 2 fields: 1)
contract_no, 2) master_agreemt. In the Billing table, it has all of the 4
fields (similar to the Detail table). If a specific contract_no, agreemt,
master_agreemt, and line_item exists in the Billing table, then DO NOT allow
user to delete record in the ContractDetail table.
I tried using a query in conjunction with the DCount to limit deletion in
the parent table, but I cannot use that method to limit deletion in the
Detail table because I need to check on the 4 existing fields before deleting
records in the Detail table.
I would appreciate if you could steer me in the right direction. Thank you!!!
geri
3 tables? I have 1) 1 parent table-ContractMain, 2) 1 child related
table-ContractDetail, and an independent table called 3) Billing table. In
the ContractDetail table, it has 4 fields: 1) Agreemt, 2) master_agreemt , 3)
contract_no, & 4) line_item. In the MainContract table, it has 2 fields: 1)
contract_no, 2) master_agreemt. In the Billing table, it has all of the 4
fields (similar to the Detail table). If a specific contract_no, agreemt,
master_agreemt, and line_item exists in the Billing table, then DO NOT allow
user to delete record in the ContractDetail table.
I tried using a query in conjunction with the DCount to limit deletion in
the parent table, but I cannot use that method to limit deletion in the
Detail table because I need to check on the 4 existing fields before deleting
records in the Detail table.
I would appreciate if you could steer me in the right direction. Thank you!!!
geri