S
Stephanie
Hope I can be helped! Here’s the error message: “You tried to assign a Null
value to a variable that is not a Variant data typeâ€.
Here’s the setup:
tblContacts
ContactID
tblChapters
ChapterID
tblChapterMembers
ChapterMemberID
ContactID
ChapterID
(which is a bad design since a contact can only be a member of one chapter,
but that’s how I designed it)
The row source for subfrmChapterMembers is
SELECT Chapter.ChapterID, Chapter.ChapterName
FROM Chapter;
frmContacts is based on tblContacts.
I have subformChapterMembers on frmContacts.
Not all contacts belong to a chapter. If I leave the chapter blank, all is
well. But if I accidentally assign a chapter to someone who doesn’t belong to
that chapter, I can’t delete the chapter assignment. When I “backspace†the
chapter entry, I get this error message: “You tried to assign a Null value to
a variable that is not a Variant data typeâ€.
I tried “delete†twice, but received the same error message. So essentially,
I need to leave an (incorrect) entry for Chapter to avoid this message. I’d
appreciate your insight!
value to a variable that is not a Variant data typeâ€.
Here’s the setup:
tblContacts
ContactID
tblChapters
ChapterID
tblChapterMembers
ChapterMemberID
ContactID
ChapterID
(which is a bad design since a contact can only be a member of one chapter,
but that’s how I designed it)
The row source for subfrmChapterMembers is
SELECT Chapter.ChapterID, Chapter.ChapterName
FROM Chapter;
frmContacts is based on tblContacts.
I have subformChapterMembers on frmContacts.
Not all contacts belong to a chapter. If I leave the chapter blank, all is
well. But if I accidentally assign a chapter to someone who doesn’t belong to
that chapter, I can’t delete the chapter assignment. When I “backspace†the
chapter entry, I get this error message: “You tried to assign a Null value to
a variable that is not a Variant data typeâ€.
I tried “delete†twice, but received the same error message. So essentially,
I need to leave an (incorrect) entry for Chapter to avoid this message. I’d
appreciate your insight!