E
Eric IsWhoIAm
Thank you, everyone, for your help earlier. I am having one more
inexplicable difficulty with my tables now.
Again, I have three tables: Courses (with an autonumber Course Number key,
and a test Course Name field); Instructors (with similar fields to Courses);
and finally, Courses and Instructors, which has fields Course Name (which
has a 1:1 relationship with Courses:Course Name), and Instructor Name (which
has a 1: many relationship with Instructors:Instructor Name, since although
each class will have one instructor, the instructor's name will show up many
times in the table).
My problem now is that, although the fields show up properly (Course Name
and Instructor Name are showing up as expected in table Courses and
Instructors' combo boxes), when I try to add a record, selecting a course
name and instructor name, anything that attempts to save the data results in
a "You cannot add or change a record because a related record is required in
table 'Courses'" error.
This confuses me; the Course Name info in the combo box is being pulled
directly from the Courses table, the Course Name field. It shows up exactly
the way it shows up in the Courses table. Why would it say that "a related
record is required in table 'Courses'", if it already contains that field
and data?
I had thought that maybe, just maybe, it would have the same problem with
table Instructors. I tried switching the order of the fields, so that it
analyzed the Instructor Name field first. No luck: The same error occurred.
I will continue trying to figure this out, but the problem seems to be
either that it thinks that the data that it pulled from table Courses is
actually not in table Courses (which makes no sense), or else that table
Courses should have an Instructor Name field inside of it (which would
defeat the purpose of what I'm trying to do). Any thoughts, anybody? Right
now, I'm open to any and all ideas!
Thank you,
Eric
inexplicable difficulty with my tables now.
Again, I have three tables: Courses (with an autonumber Course Number key,
and a test Course Name field); Instructors (with similar fields to Courses);
and finally, Courses and Instructors, which has fields Course Name (which
has a 1:1 relationship with Courses:Course Name), and Instructor Name (which
has a 1: many relationship with Instructors:Instructor Name, since although
each class will have one instructor, the instructor's name will show up many
times in the table).
My problem now is that, although the fields show up properly (Course Name
and Instructor Name are showing up as expected in table Courses and
Instructors' combo boxes), when I try to add a record, selecting a course
name and instructor name, anything that attempts to save the data results in
a "You cannot add or change a record because a related record is required in
table 'Courses'" error.
This confuses me; the Course Name info in the combo box is being pulled
directly from the Courses table, the Course Name field. It shows up exactly
the way it shows up in the Courses table. Why would it say that "a related
record is required in table 'Courses'", if it already contains that field
and data?
I had thought that maybe, just maybe, it would have the same problem with
table Instructors. I tried switching the order of the fields, so that it
analyzed the Instructor Name field first. No luck: The same error occurred.
I will continue trying to figure this out, but the problem seems to be
either that it thinks that the data that it pulled from table Courses is
actually not in table Courses (which makes no sense), or else that table
Courses should have an Instructor Name field inside of it (which would
defeat the purpose of what I'm trying to do). Any thoughts, anybody? Right
now, I'm open to any and all ideas!
Thank you,
Eric