H
Home Again
Using an if-then-else statement and want to be able to make several things
visible=false (attendance for all months past the end of the chosen term)
To change only one month, the statement follows. Is it possible to set
several?
Private Sub Report_Activate()
'hide attendance based on asofdate
If Me.asofdate <= Me.Term1end Then
Me.November.Visible = False 'I want this to be November, December,
January,February, March,April,may,June
ElseIf Me.asofdate <= Me.term2end Then
Me.February.Visible = False 'I want this to be February, March, April, may,
June
ElseIf Me.asofdate <= Me.term3end Then
Me.April.Visible = False 'I want this to be April, May, June
Else: Me.september.visible = True 'to do nothing for fourth term
End If
End Sub
visible=false (attendance for all months past the end of the chosen term)
To change only one month, the statement follows. Is it possible to set
several?
Private Sub Report_Activate()
'hide attendance based on asofdate
If Me.asofdate <= Me.Term1end Then
Me.November.Visible = False 'I want this to be November, December,
January,February, March,April,may,June
ElseIf Me.asofdate <= Me.term2end Then
Me.February.Visible = False 'I want this to be February, March, April, may,
June
ElseIf Me.asofdate <= Me.term3end Then
Me.April.Visible = False 'I want this to be April, May, June
Else: Me.september.visible = True 'to do nothing for fourth term
End If
End Sub