P
pgcn
Hi
I have an A2003 database of contact activites which are allocated
participants (stakeholders), however when a contact is deleted the
code only seems to be deleting the contact from the Contact table and
not the stakeholders as well (trelContactStHolderProj). I'd like to
know the query to show orphaned records in trelContactStHolderProj
where there's no matching ContactID in tblContact.
tblContact:
ContactID - PK - Auto number, joined 1 to many with
trelContactStHolderProj:
fContactID - PK - number
so far I have:
SELECT tblContact.ContactID, trelContactStHolderProj.fStHolProjID,
tblContact.fContactType
FROM tblContact INNER JOIN trelContactStHolderProj ON
tblContact.ContactID = trelContactStHolderProj.fContactID;
thanks a lot
Peta
I have an A2003 database of contact activites which are allocated
participants (stakeholders), however when a contact is deleted the
code only seems to be deleting the contact from the Contact table and
not the stakeholders as well (trelContactStHolderProj). I'd like to
know the query to show orphaned records in trelContactStHolderProj
where there's no matching ContactID in tblContact.
tblContact:
ContactID - PK - Auto number, joined 1 to many with
trelContactStHolderProj:
fContactID - PK - number
so far I have:
SELECT tblContact.ContactID, trelContactStHolderProj.fStHolProjID,
tblContact.fContactType
FROM tblContact INNER JOIN trelContactStHolderProj ON
tblContact.ContactID = trelContactStHolderProj.fContactID;
thanks a lot
Peta