S
Sheila
I have posted this query again, because I still can't get this to work.....
I have read much of the resource that has been suggested to me in this forum,
but am still having problems.
Amongst other tables I have the following:-
Class table (PK = Class ID) This table has data
Student table (PK = Student ID) This table has data
StudentClass table (Junction table for above many to many. PKs = Class ID
and Student ID) This data has no data yet because I seem to be unable to make
a form for data entry and this is where my problems start.
Class table related via ID field to Junction table (StudentClass Table)
Student table related via ID field to Junction table (StudentClass Table)
I need a form so I can record in my database, which students attend which
classes and, I need to be able to view the information by a class so I can
see which students are enrolled on it, but first, I need to get the data in
the database.....!
I have tried x2 ways to set up my form for data entry using the Junction
table and having read and received various bits of information from postings,
I believe that the way to proceed is with a simple form produced from the
Junction table.
......but the trouble with using the junction table for the form was that
when I created the form, I needed to know the IDs for each field. So I
imagined myself sitting at my laptop for x3 days with a hardcopy printout of
all the students' names with their respective ID numbers and another hardcopy
print out of the ClassIDs. All I could then visualise was a whole list of
meaningless numbers...I quickly realised that there had to be a better way....
So, I thought that Combo boxes would be the answer. I could click the drop
down box next to the Class ID field, it would display the full list of
classes with all their details, I would select the one I wanted, and all the
remaining fields relating to that class would be completed for me. I would
then click the drop down box next to the Student ID field and the same thing
would happen.... but I can't seem to get the set-up correct. Are the combo
boxes bound or unbound..?? Do I want the combo box to look up the values in a
table or query....if so, which table...etc etc. Are the combo boxes not
helping because the data required to auto-populate is contained in other
tables NOT the junction table (junction table has no data yet)..??
In an ideal world, I would like a form where I enter the ClassID field and
it auto-populates the remaining class fields (teacher,venue,time etc), and
then I just enter a list of student names (from a combo box so I don't make
spelling mistakes). This would all link back to the other tables and hey
presto.....all singing all dancing. If I can do this bit, I know that I can
crack all the other bits I need to do to complete my database.
I think I understand the 1-many relationships and realised that I had
many-many. I am absolutely positive that my relationships are all set up
correctly.
It seems so simple, so why doesn't it work...??? I am at a total loss as to
how to proceed and I've become desperate.....Excel is beckoning......
I'm sorry this is so long but I thought that if I make it to brief you would
not fully understand what I'm trying to do, and what I've done so far.
Please please help,
Thanks,
I have read much of the resource that has been suggested to me in this forum,
but am still having problems.
Amongst other tables I have the following:-
Class table (PK = Class ID) This table has data
Student table (PK = Student ID) This table has data
StudentClass table (Junction table for above many to many. PKs = Class ID
and Student ID) This data has no data yet because I seem to be unable to make
a form for data entry and this is where my problems start.
Class table related via ID field to Junction table (StudentClass Table)
Student table related via ID field to Junction table (StudentClass Table)
I need a form so I can record in my database, which students attend which
classes and, I need to be able to view the information by a class so I can
see which students are enrolled on it, but first, I need to get the data in
the database.....!
I have tried x2 ways to set up my form for data entry using the Junction
table and having read and received various bits of information from postings,
I believe that the way to proceed is with a simple form produced from the
Junction table.
......but the trouble with using the junction table for the form was that
when I created the form, I needed to know the IDs for each field. So I
imagined myself sitting at my laptop for x3 days with a hardcopy printout of
all the students' names with their respective ID numbers and another hardcopy
print out of the ClassIDs. All I could then visualise was a whole list of
meaningless numbers...I quickly realised that there had to be a better way....
So, I thought that Combo boxes would be the answer. I could click the drop
down box next to the Class ID field, it would display the full list of
classes with all their details, I would select the one I wanted, and all the
remaining fields relating to that class would be completed for me. I would
then click the drop down box next to the Student ID field and the same thing
would happen.... but I can't seem to get the set-up correct. Are the combo
boxes bound or unbound..?? Do I want the combo box to look up the values in a
table or query....if so, which table...etc etc. Are the combo boxes not
helping because the data required to auto-populate is contained in other
tables NOT the junction table (junction table has no data yet)..??
In an ideal world, I would like a form where I enter the ClassID field and
it auto-populates the remaining class fields (teacher,venue,time etc), and
then I just enter a list of student names (from a combo box so I don't make
spelling mistakes). This would all link back to the other tables and hey
presto.....all singing all dancing. If I can do this bit, I know that I can
crack all the other bits I need to do to complete my database.
I think I understand the 1-many relationships and realised that I had
many-many. I am absolutely positive that my relationships are all set up
correctly.
It seems so simple, so why doesn't it work...??? I am at a total loss as to
how to proceed and I've become desperate.....Excel is beckoning......
I'm sorry this is so long but I thought that if I make it to brief you would
not fully understand what I'm trying to do, and what I've done so far.
Please please help,
Thanks,