B
Bob Mullen
I have a table that contains fields for four players fldPlayer1, fldPlayer2, fldPlayer3, fldPlayer4. Through a main form a guest may be entered into any one of the four player fields. When a guest is entered a record is created in a separate guests table. However, if the guest is subsequently deleted from the main table I have an orphaned guest record in the guests table.
How can I best handle this problem. What seems to be problematic is that the guest's name may be in any one of the four fields in the main table. This seems to make an Unmatched Records Query fail to accurately identify which guest records are in fact orphaned (ie: do not appear in fldPlayer1, fldPlayer2, fldPlayer3 or fldPlayer4). If I could get the unmatched query to work properly I could then run a delete query of those records in the guests table.
Any help or alternate approaches would be appreciated.
How can I best handle this problem. What seems to be problematic is that the guest's name may be in any one of the four fields in the main table. This seems to make an Unmatched Records Query fail to accurately identify which guest records are in fact orphaned (ie: do not appear in fldPlayer1, fldPlayer2, fldPlayer3 or fldPlayer4). If I could get the unmatched query to work properly I could then run a delete query of those records in the guests table.
Any help or alternate approaches would be appreciated.