Hello All,
i would like to have a database to enter degrees for each subject per a student name, for example for the college of science we have several departments ( IT , biology , chemistry .... )
when i write a student name and choose a department i would like it show the subjects belong that department as shown below ,
i think this may be a wrong way ... could you please advise a better way design ?
many thanks
Needs Help in DB Design
-
- BronzeLounger
- Posts: 1211
- Joined: 01 May 2016, 09:58
Needs Help in DB Design
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Needs Help in DB Desgin
Can the same subject be taught in multiple departments? For example, mathematics might be taught in all science departments.
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1211
- Joined: 01 May 2016, 09:58
Re: Needs Help in DB Design
May be there is one or more subject taught in more than one department
Regards
Regards
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Needs Help in DB Design
Here is a sample database. Look at Database Tools > Relationships to see how the tables are related.
There is an After Insert event procedure in frmStudent to create the grade records for a new student.
(The subjects and students are fictitious and just meant as examples)
A real-life database might be more complicated.
There is an After Insert event procedure in frmStudent to create the grade records for a new student.
(The subjects and students are fictitious and just meant as examples)
A real-life database might be more complicated.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1211
- Joined: 01 May 2016, 09:58
-
- BronzeLounger
- Posts: 1211
- Joined: 01 May 2016, 09:58
Re: Needs Help in DB Design
Dear Hans,HansV wrote:Here is a sample database. Look at Database Tools > Relationships to see how the tables are related.
There is an After Insert event procedure in frmStudent to create the grade records for a new student.
(The subjects and students are fictitious and just meant as examples)
A real-life database might be more complicated.
thanks a lot for the example,
i have tested but when i change the department the subjects are not changing accordingly , any advise please?
Regards
-
- BronzeLounger
- Posts: 1211
- Joined: 01 May 2016, 09:58
Re: Needs Help in DB Design
siamandm wrote:Dear Hans,HansV wrote:Here is a sample database. Look at Database Tools > Relationships to see how the tables are related.
There is an After Insert event procedure in frmStudent to create the grade records for a new student.
(The subjects and students are fictitious and just meant as examples)
A real-life database might be more complicated.
thanks a lot for the example,
i have tested but when i change the department the subjects are not changing accordingly , any advise please?
for new student you can choose a department and you get the subjects accordingly , but after that when you change the department for already entered record the subjects are not changes
Regards
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Needs Help in DB Design
What would you like to happen when an existing student changes department? Should the grades for the "old" subjects be deleted, or should they remain?
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1211
- Joined: 01 May 2016, 09:58
-
- Administrator
- Posts: 78416
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Needs Help in DB Design
See the attached version. I have now used the After Update event of the Department combo box.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans