I have a simple event code for toggle button in a single form named "DisplayEXEAGAINST" with control and value to be stored in [DisplayEXEAGAINST] :
Private Sub DisplayEXEAGAINST_Click()
Me.BoxEXE.Visible = IIf(Me.DisplayEXEAGAINST.Value =-1, True, False)
End Sub
-------------------------
Private Sub Form_Current()
Me.BoxEXE.Visible = IIf(Me.DisplayEXEAGAINST.Value =-1, True, False)
End Sub
------------------------
The intention is to hide or unhide the record of Me.BoxEXE in every row independently.
However, after click of the button, the same record in all the rows will change to become the same which is incorrect, i.e. the same record in all the single form be hidden or unhidden.
Appreciate help to correct the error.
Thanks !