A
an
Hello!
I have [Event Procedure] On Current in Form.
There, I need to whrite some rows with code to hide
fields, by some conditions.
Example:
Private Sub Form_Current()
If [A] = "A" Then
[Field1].Visible = False
Else
[Field1].Visible = True
End If
If = "B" Then
[Field2].Visible = False
Else
[Field2].Visible = True
End If
If [C] = "C" Then
[Field3].Visible = False
Else
[Field3].Visible = True
End If
EndSub
But only acept the last conditon, before End Sub.
How is possible to repeat this procedures to acept all
conditions, please?
Thanks in advance.
an
I have [Event Procedure] On Current in Form.
There, I need to whrite some rows with code to hide
fields, by some conditions.
Example:
Private Sub Form_Current()
If [A] = "A" Then
[Field1].Visible = False
Else
[Field1].Visible = True
End If
If = "B" Then
[Field2].Visible = False
Else
[Field2].Visible = True
End If
If [C] = "C" Then
[Field3].Visible = False
Else
[Field3].Visible = True
End If
EndSub
But only acept the last conditon, before End Sub.
How is possible to repeat this procedures to acept all
conditions, please?
Thanks in advance.
an