Hi,
I am creating a database for a school. I have each child's details in a table called 'tblChild', and each child's grade in a table called 'tblGrade'. As I am trying to track the child's progress through the school, the grade table contains a year column. As the database is updated each summer holiday, I would like a row created in the grade table, for each current pupil. I though that this would be possible using an append query, however, I am REALLY struggling. I created a query which filters out the pupils who have left, leaving me with just the current pupils, and have managed to get an append query to copy all of their ChildID's into the grade table. However, I need to make sure there is not a duplicated row within a certain year, although duplicate values are allowed within the field.
I appreciate this is confusing! So, as an example, I want to be able to ensure that each child for a given year, has one (and only one) row of information within the grades table. However, as each child is theoretically with us for 6 years, there needs to be duplication within the ChildID field in the grades table.
Any help would be greatly appreciated - ESPECIALLY if you can see a more logical way of doing this, even if it means re-structuring tables etc.
Thanks in advance.
I am creating a database for a school. I have each child's details in a table called 'tblChild', and each child's grade in a table called 'tblGrade'. As I am trying to track the child's progress through the school, the grade table contains a year column. As the database is updated each summer holiday, I would like a row created in the grade table, for each current pupil. I though that this would be possible using an append query, however, I am REALLY struggling. I created a query which filters out the pupils who have left, leaving me with just the current pupils, and have managed to get an append query to copy all of their ChildID's into the grade table. However, I need to make sure there is not a duplicated row within a certain year, although duplicate values are allowed within the field.
I appreciate this is confusing! So, as an example, I want to be able to ensure that each child for a given year, has one (and only one) row of information within the grades table. However, as each child is theoretically with us for 6 years, there needs to be duplication within the ChildID field in the grades table.
Any help would be greatly appreciated - ESPECIALLY if you can see a more logical way of doing this, even if it means re-structuring tables etc.
Thanks in advance.