Solved School database

Mercy Mercy

Member
Local time
Today, 11:25
Joined
Jan 27, 2023
Messages
87
I am very new to access. I am trying to make a school database.
In my school some students let's say 15 take subject A and another 25 take subject B and another 30 take subject C.
I am trying to use YES/NO.
For student 1 click yes for taking subject A and C.
Student 2 click yes if taking subject C and so on and so on.

In the end the database should populate the number of students taking Subject A and Subject B and Subject C.

Please kindly assist me with queries or vba.

Thanks in advance.
 
I will really appreciate if there is a sample database. Thanks in advance.
 
there is a sample, you need to modify it.
 

Attachments


there is a sample, you need to modify it.
I am trying to add the following tables
1. Year- combo box to generate years automatically.
2. Term- for 3 terms
Term 1
Term 2
Term 3
3. Name of the school.
Question- how can I create relationships?
Your database works fine. I only want to separate years and terms and name of the school.


Thanks in advance.
 
on Classes form, there is already the Term, i change it to combobox to select terms from Term table.
about the Year, you can enter the "Current School Year" in table Default, and when you
enter New student in Classes, it will take the Year from this table.

this is a single School so, the school name is in Default table (if you need to change the name of entity, you also need to change
code that uses it like DLookup()).

see Classes form.
 

Attachments

on Classes form, there is already the Term, i change it to combobox to select terms from Term table.
about the Year, you can enter the "Current School Year" in table Default, and when you
enter New student in Classes, it will take the Year from this table.

this is a single School so, the school name is in Default table (if you need to change the name of entity, you also need to change
code that uses it like DLookup()).

see Classes form.
Thanks
 
@arnelgp It is better to provide links to the MS examples rather than uploading versions you have modified.
 
provide links to the MS examples rather than uploading versions you have modified
it was Not a modified version. i upload it as-is.
only modified it on the OP request.
 
Sorry, I saw that RI was not enforced on two tables. I have an older version of that sample and RI is enforced so I thought it had been modified.
@Mercy Mercy You seem to be living up to your name. No one was being attacked, I just wanted to make sure you had the unaltered example. It is quite easy to accidentally modify the MS templates once you download them, there is so much wrong with all of them.
 
Sorry, I saw that RI was not enforced on two tables. I have an older version of that sample and RI is enforced so I thought it had been modified.
@Mercy Mercy You seem to be living up to your name. No one was being attacked, I just wanted to make sure you had the unaltered example. It is quite easy to accidentally modify the MS templates once you download them, there is so much wrong with all of them.
Thanks. Much appreciated.
 

Users who are viewing this thread

Back
Top Bottom