Stephenlyn
Programmer
I have a program that is producing school reports for special needs kids. The kids can be assessed in different curriculun areas. So I have check boxes on the form to indicate what curriculum areas they are being assessed on.
When the report is called the following code is supposed to check the status of the check box and hide or show parts of the report.
The problem I have is the first record is always showing everything and other records sometimes behave correctly but offen behave what appears to be dependant on the previous record.
What do I need to do to make this work.
cheers
When the report is called the following code is supposed to check the status of the check box and hide or show parts of the report.
Code:
Private Sub Report_Page()
DoCmd.RepaintObject
If [cbxW7] = False Then
[SentenceStructure].Visible = False
[UseOfVocabulary].Visible = False
[PunctuationGrammar].Visible = False
[AppliesEditingSkills].Visible = False
[Content].Visible = False
[frmW1].Visible = False
[frmW2].Visible = False
[frmW3].Visible = False
[frmW4].Visible = False
[frmW5].Visible = False
[txtW1_effort].Visible = False
[txtW2_effort].Visible = False
[txtW3_effort].Visible = False
[txtW4_effort].Visible = False
[txtW5_effort].Visible = False
[lblWriting].Visible = False
End If
If [cbxR6] = False Then
[Comprehension].Visible = False
[WordKnowledge].Visible = False
[OralReading].Visible = False
[frmR1].Visible = False
[frmR2].Visible = False
[frmR3].Visible = False
[txtR1_effort].Visible = False
[txtR2_effort].Visible = False
[txtR3_effort].Visible = False
[READING].Visible = False
End If
End Sub
The problem I have is the first record is always showing everything and other records sometimes behave correctly but offen behave what appears to be dependant on the previous record.
What do I need to do to make this work.
cheers