Hi,
I'm trying to create a report that will produce automated sets of Committee Minutes for School Appeals, where there are a range of different outcomes, these being:
The issue I have is trying to find a way to get these outcomes to display properly in the report.
I have already tried having these text outcomes in a table, but when the report picks them up, it doesn't process the other referenced items, such as [SCHOOL].
My current thought on the best way of doing this is to use nested ElseIf statements, using the following code, (assuming that I would have a new field called [MinuteText] in the query.)
However... I'm not sure:
(a) what I need to do to get the query to reference this code; what type of VBA function it needs to be, and; where I then put this code.
(b) If it will actually work as hoped when it's in place!
Thanks in advance!
- Steve
I'm trying to create a report that will produce automated sets of Committee Minutes for School Appeals, where there are a range of different outcomes, these being:
"Grant - Stage 1";
="RESOLVED – That the " & [SCHOOL TYPE] & " has failed to demonstrate that the admission of an additional pupil to " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School in " & [YEAR APPLIED FOR] & " would prejudice the provision of efficient education and the efficient use of resources and that accordingly the " & [SCHOOL TYPE] & " be requested to make a place available."
"Grant - Stage 2";
="RESOLVED – (1) That Panel were satisfied that the admissions procedure had been applied correctly in the circumstances of the case.
(2) That the appeal against the decision of the " & [SCHOOL TYPE] & " to refuse a place at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School in " & [YEAR APPLIED FOR] & " be upheld on the grounds that the case put forward by the parents outweighed the prejudice established by the " & [SCHOOL TYPE] & ", and that a place be made available at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School."
"Refused";
="RESOLVED – (1) That Panel were satisfied that the admissions procedure had been applied correctly in the circumstances of the case.
(2) That the appeal against the decision of the " & [SCHOOL TYPE] & " to refuse a place at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School in " & [YEAR APPLIED FOR] & " be dismissed on the grounds that the Panel was satisfied that to allow the appeal and to allocate a place at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School would be prejudicial to the provision of efficient education and the efficient use of resources to such an extent as to override the reasons put forward by the parent in preferring " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School."
"Deferred";
="RESOLVED – That consideration of the appeal be deferred."
"Withdrawn";
="The Clerk informed the Panel that the appeal had been withdrawn."
"Grant - Maladministration (Infant Class Size Appeal)";
="RESOLVED – That the appeal be granted on the basis that the child would have been offered a place if the admission arrangements had been properly implemented."
"Grant - Unreasonable (Infant Class Size Appeal)";
="RESOLVED – That the appeal be granted on the basis that the decision to refuse a place was not one a reasonable authority would have made in the circumstances of the case."
"Refused (Infant Class Size Appeal)";
="RESOLVED – That the appeal be refused on the grounds of class size prejudice."
The issue I have is trying to find a way to get these outcomes to display properly in the report.
I have already tried having these text outcomes in a table, but when the report picks them up, it doesn't process the other referenced items, such as [SCHOOL].
My current thought on the best way of doing this is to use nested ElseIf statements, using the following code, (assuming that I would have a new field called [MinuteText] in the query.)
If [Cases.OUTCOME] = "Grant - Stage 1" Then
[MinuteText] = "RESOLVED – That the " & [SCHOOL TYPE] & " has failed to demonstrate that the admission of an additional pupil to " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School in " & [YEAR APPLIED FOR] & " would prejudice the provision of efficient education and the efficient use of resources and that accordingly the " & [SCHOOL TYPE] & " be requested to make a place available."
ElseIf [Cases.OUTCOME] = "Grant - Stage 2" Then
[MinuteText] = "RESOLVED – (1) That Panel were satisfied that the admissions procedure had been applied correctly in the circumstances of the case.
(2) That the appeal against the decision of the " & [SCHOOL TYPE] & " to refuse a place at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School in " & [YEAR APPLIED FOR] & " be upheld on the grounds that the case put forward by the parents outweighed the prejudice established by the " & [SCHOOL TYPE] & ", and that a place be made available at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School."
ElseIf [Cases.OUTCOME] = "Refused" Then
[MinuteText] = "RESOLVED – (1) That Panel were satisfied that the admissions procedure had been applied correctly in the circumstances of the case.
(2) That the appeal against the decision of the " & [SCHOOL TYPE] & " to refuse a place at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School in " & [YEAR APPLIED FOR] & " be dismissed on the grounds that the Panel was satisfied that to allow the appeal and to allocate a place at " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School would be prejudicial to the provision of efficient education and the efficient use of resources to such an extent as to override the reasons put forward by the parent in preferring " & [SCHOOL] & " " & [PRIMARY/SECONDARY] & " School."
ElseIf [Cases.OUTCOME] = "Deferred" Then
[MinuteText] = "RESOLVED – That consideration of the appeal be deferred."
ElseIf [Cases.OUTCOME] = "Withdrawn" Then
[MinuteText] = "The Clerk informed the Panel that the appeal had been withdrawn."
ElseIf [Cases.OUTCOME] = "Grant - Maladministration (Infant Class Size Appeal)" Then
[MinuteText] = "RESOLVED – That the appeal be granted on the basis that the child would have been offered a place if the admission arrangements had been properly implemented."
ElseIf [Cases.OUTCOME] = "Grant - Unreasonable (Infant Class Size Appeal)" Then
[MinuteText] = "RESOLVED – That the appeal be granted on the basis that the decision to refuse a place was not one a reasonable authority would have made in the circumstances of the case."
ElseIf [Cases.OUTCOME] = "Refused (Infant Class Size Appeal)" Then
[MinuteText] = "RESOLVED – That the appeal be refused on the grounds of class size prejudice."
Else
[MinuteText] = "Error!"
End If
However... I'm not sure:
(a) what I need to do to get the query to reference this code; what type of VBA function it needs to be, and; where I then put this code.
(b) If it will actually work as hoped when it's in place!
Thanks in advance!
- Steve
Last edited: