Hi - hope someone can help me with this. I have an application that tracks/calculates charges and contract information. I have two check boxes for optional charges. If the user checks a box, the optional charges are visible, otherwise the charges are not visible. I have this code on the click event of the check box.
The problem is that when I navigate through the records, if I have checked the box in the first record, the charges are visible in all the subsequent records. I have tried to correct this using the form current event and the form dirty event, but it still does not correct this.
An example of the code I'm using is:
If checkbox.Value = -1 Then
label.Visible = True
textbox.Visible = True
ElseIf checkbox.Value = 0 Then
label.Visible = False
textbox.Visible = False
End If
Does anyone know how to correct this?
Thank you in advance for your help!
The problem is that when I navigate through the records, if I have checked the box in the first record, the charges are visible in all the subsequent records. I have tried to correct this using the form current event and the form dirty event, but it still does not correct this.
An example of the code I'm using is:
If checkbox.Value = -1 Then
label.Visible = True
textbox.Visible = True
ElseIf checkbox.Value = 0 Then
label.Visible = False
textbox.Visible = False
End If
Does anyone know how to correct this?
Thank you in advance for your help!