Solved School database (1 Viewer)

Mercy Mercy

Member
Local time
Today, 10:48
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.
 

Mercy Mercy

Member
Local time
Today, 10:48
Joined
Jan 27, 2023
Messages
87
I will really appreciate if there is a sample database. Thanks in advance.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,243
there is a sample, you need to modify it.
 

Attachments

  • Classroom-management-database.zip
    356 KB · Views: 125

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 08:48
Joined
Jul 9, 2003
Messages
16,282
To highlight a trap that people converting from Excel to access can fall into, I wrote a blog along similar lines to your question.

 

Mercy Mercy

Member
Local time
Today, 10:48
Joined
Jan 27, 2023
Messages
87

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.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,243
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

  • Classroom-management-database.mdb
    1.3 MB · Views: 130

Mercy Mercy

Member
Local time
Today, 10:48
Joined
Jan 27, 2023
Messages
87
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
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:48
Joined
Feb 19, 2002
Messages
43,275
@arnelgp It is better to provide links to the MS examples rather than uploading versions you have modified.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:48
Joined
May 7, 2009
Messages
19,243
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.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:48
Joined
Feb 19, 2002
Messages
43,275
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.
 

Mercy Mercy

Member
Local time
Today, 10:48
Joined
Jan 27, 2023
Messages
87
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

Top Bottom