Hi,
I have a form (continuous) that shows several records, each in an individual detail row.
Depending on a value in each of the detail rows, I want to display a specific label and hide others. This needs to evaluate for each separate detail row.
This is the code I have.
Currently, this is just checking the value of the first record returned, and then applying the visibility to all of the detail rows on the form.
How can I get this to evaluate each detail row separately?
Cheers,
Chris
I have a form (continuous) that shows several records, each in an individual detail row.
Depending on a value in each of the detail rows, I want to display a specific label and hide others. This needs to evaluate for each separate detail row.
This is the code I have.
Code:
Private Sub Form_Load()
If archive = -1 Then
ArchiveLabel.Visible = True
open_date.Visible = False
form_date.Visible = False
close_date.Visible = False
ElseIf archive = 0 Then
ArchiveLabel.Visible = False
open_date.Visible = True
form_date.Visible = True
close_date.Visible = True
End If
End Sub
Currently, this is just checking the value of the first record returned, and then applying the visibility to all of the detail rows on the form.
How can I get this to evaluate each detail row separately?
Cheers,
Chris