paulbradley
Programmer
I have created an access report, which has a section where I want certain labels to be visible or not depending on other variables. This happens a number of times down the page for different records. I have used the following code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [OriginalMark] = [ReMarkMark] Then
[Nochange].Visible = True
[ReMarkMark].Visible = False
[ReMarkGrade].Visible = False
End If
End Sub
OriginalMark, ReMarkMark, Nochange and RemarkGrade are all bound labels on the record.
However, it looks at the first record and depending on the result of the IF statement on that, does the same for every record on the page. How can I change it so it treats every record individually?
Many thanks in advance.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [OriginalMark] = [ReMarkMark] Then
[Nochange].Visible = True
[ReMarkMark].Visible = False
[ReMarkGrade].Visible = False
End If
End Sub
OriginalMark, ReMarkMark, Nochange and RemarkGrade are all bound labels on the record.
However, it looks at the first record and depending on the result of the IF statement on that, does the same for every record on the page. How can I change it so it treats every record individually?
Many thanks in advance.