Click here to Skip to main content
15,885,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, I am an Accountancy student but I need a membership database for a school project and I have no idea how to accumulate data of different years and so I thought of trying to filter it using a field for the year they joined.

The user will be asked to input their Student number name, contact details, and other basic information and also what school year the member had joined (example: 2016 - 2017) and it can store more than 1 of that data. Say for example a student has been a member for 3 years: School Year 2016 - 2017, 2017 - 2018, 2018 - 2019.

How can I be able to do this for a single person and do the codes necessary to view students joined at these particular years? I need to connect the query to visual basic.

Thank you so much for those who would help out!I've tried searching everywhere on the internet but nothing is helping...

What I have tried:

I tried to think of tables to create a query but I can't think of how I can do this. I was originally planning on autoincrementing (I don't know if this term is correct) a new table database for every new academic year that will start but apparently, it's too complex.
Posted
Updated 29-Nov-17 5:46am
v2

1 solution

Quote:
a new table database for every new academic year that will start but apparently, it's too complex.
No, you would just store the year as a filed within a table.

Quote:
The user will be asked to input their Student number name, contact details, and other basic information and also what school year the member had joined (example: 2016 - 2017) and it can store more than 1 of that data.

You can create a table called students that stores this information.

Then you might want a separate table to record attendance. Something very simple though. For example store the student_id and the year. That way the student table only has the 1 record per student but if you want to get a list of what years they attended you would join to the attendance table.
 
Share this answer
 
Comments
Geneen 30-Nov-17 6:34am    
I still don't understand how there can be more than 1 year for a student :(
ZurdoDev 30-Nov-17 7:32am    
Create an attendance table which stores the student id and the year. Then add a record for each year. Simple.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900