T
Telesphore
SELECT
[Lastname] & " " & [Firstname] AS StudentName,
tblStudents.Street,
tblStudents.City,
..
Format([InscriptionDate],"mm") AS InscriptionMonth,
Switch(
Month([InscriptionDate])=1,"04",
Month([InscriptionDate])=5,"06",
Month([InscriptionDate])=9,"12") AS EndTermMonth,
Switch(
Month([InscriptionDate])=1,"4",
Month([InscriptionDate])=5,"2",
Month([InscriptionDate])=9,"4") AS TotalOfMonths,
[Admission]+[Inscription]+[Schooling] AS Fees,
....
In this query for tax returns, we need only three (3) periods: 1 for the
January-April term, 5 for the May-June term and 9 for the September-December
term.
It happens sometimes that a student is registered twice during the same
term, for example in the September-December term.
So 1) how can we integrate these two (2) inscriptions in the two (2)
"Switches" and 2) how can we totalize the sum in the "Fees"?
Thank you in advance.
[Lastname] & " " & [Firstname] AS StudentName,
tblStudents.Street,
tblStudents.City,
..
Format([InscriptionDate],"mm") AS InscriptionMonth,
Switch(
Month([InscriptionDate])=1,"04",
Month([InscriptionDate])=5,"06",
Month([InscriptionDate])=9,"12") AS EndTermMonth,
Switch(
Month([InscriptionDate])=1,"4",
Month([InscriptionDate])=5,"2",
Month([InscriptionDate])=9,"4") AS TotalOfMonths,
[Admission]+[Inscription]+[Schooling] AS Fees,
....
In this query for tax returns, we need only three (3) periods: 1 for the
January-April term, 5 for the May-June term and 9 for the September-December
term.
It happens sometimes that a student is registered twice during the same
term, for example in the September-December term.
So 1) how can we integrate these two (2) inscriptions in the two (2)
"Switches" and 2) how can we totalize the sum in the "Fees"?
Thank you in advance.