Hi,
I'm trying to write a simple update vb code for showing/hiding a text box dependent on whether any values are present in subforms:
Private Sub Form_Current()
If Not IsNull(Me.tbComments) Then
Me.LblComments.Visible = True 'shows Comments label when comments box is not Null
Else: Me.LblComments.Visible = False 'otherwise hide comments box label
End If
End Sub
The above code works, however if a value in one of the subform records is true, it seems to make the text box visible in all records. Is there a way to make this specific to per record?
Thanks
I'm trying to write a simple update vb code for showing/hiding a text box dependent on whether any values are present in subforms:
Private Sub Form_Current()
If Not IsNull(Me.tbComments) Then
Me.LblComments.Visible = True 'shows Comments label when comments box is not Null
Else: Me.LblComments.Visible = False 'otherwise hide comments box label
End If
End Sub
The above code works, however if a value in one of the subform records is true, it seems to make the text box visible in all records. Is there a way to make this specific to per record?
Thanks