S
Stephanie
Hello. I have a form based on Contacts. Contacts are assigned (or not) to
Chapters. Here's the design:
Contacts
ContactID
ContactLastName...
ChapterMember
CapterMemberID
ContactID
ChapterID
Chapter
ChapterID
ChapterName
Since Contacts doesn't contain ChapterMember info, I created a subform:
SELECT ChapterMembers.ChapterMemberID, ChapterMembers.ContactID,
ChapterMembers.ChapterID, Chapter.ChapterName
FROM Chapter INNER JOIN ChapterMembers ON Chapter.ChapterID =
ChapterMembers.ChapterID;
And linked the ChapterMember subform to Contacts on ContactID. All looks
good.
However, when I try to delete a Contact that has an assigned Chapter, first
I have to click in the ChapterMember subform and click delete. Only then can
I click anywhere on the Contacts form and click delete.
So I tried to make Chapter a combo box on Contacts, but since Contacts isn't
a field in ChapterMember there is nothing to bind it to. Then I tried adding
Chapter and ChapterMember to the RecordSource of the Contacts form and was
able to build the combo box, but that limits the Contacts to those that has
an assigned Chapter.
Serves me right for trying to delete! Any suggestions? Thanks.
Chapters. Here's the design:
Contacts
ContactID
ContactLastName...
ChapterMember
CapterMemberID
ContactID
ChapterID
Chapter
ChapterID
ChapterName
Since Contacts doesn't contain ChapterMember info, I created a subform:
SELECT ChapterMembers.ChapterMemberID, ChapterMembers.ContactID,
ChapterMembers.ChapterID, Chapter.ChapterName
FROM Chapter INNER JOIN ChapterMembers ON Chapter.ChapterID =
ChapterMembers.ChapterID;
And linked the ChapterMember subform to Contacts on ContactID. All looks
good.
However, when I try to delete a Contact that has an assigned Chapter, first
I have to click in the ChapterMember subform and click delete. Only then can
I click anywhere on the Contacts form and click delete.
So I tried to make Chapter a combo box on Contacts, but since Contacts isn't
a field in ChapterMember there is nothing to bind it to. Then I tried adding
Chapter and ChapterMember to the RecordSource of the Contacts form and was
able to build the combo box, but that limits the Contacts to those that has
an assigned Chapter.
Serves me right for trying to delete! Any suggestions? Thanks.