J
Johnny
This should be fairly simple, but would someone assist to see what I am
missing on this. I have a combo based on a value list of 3 asset options:
PC, Printer, Other. If the form shows PC on the combo I want the computer's
machine name to be visible, but not visible if the form shows the other two
options in the combo. Fairly basic. Device type is the name of my combo.
Here is my code on the on open properties:
Private Sub Form_Open(Cancel As Integer)
If [Device type] = "PC" Then
[Machine Name].Visible = True
Else
[Machine Name].Visible = False
End If
End Sub
I also have the machine name control set to visible "no".
I'm a simpleton at coding and have spent the afternoon trying to make this
work and reading other similar posts. Any suggestions is greatly appreciated.
Thanks in advance.
missing on this. I have a combo based on a value list of 3 asset options:
PC, Printer, Other. If the form shows PC on the combo I want the computer's
machine name to be visible, but not visible if the form shows the other two
options in the combo. Fairly basic. Device type is the name of my combo.
Here is my code on the on open properties:
Private Sub Form_Open(Cancel As Integer)
If [Device type] = "PC" Then
[Machine Name].Visible = True
Else
[Machine Name].Visible = False
End If
End Sub
I also have the machine name control set to visible "no".
I'm a simpleton at coding and have spent the afternoon trying to make this
work and reading other similar posts. Any suggestions is greatly appreciated.
Thanks in advance.