A
aJay
Hi,
What I am trying to achieve is the following:
A form has 24 command buttons related to 24 network ports. If the port
is shown as 'Connected', then its command button is shown. If the port
is not shown as 'Connected', then its command button is transparent.
---------------------
testport3 = DCount("[Port Number]", "[ports]", "[Switch ID] Like
switchid AND [Port Number] Like '3' AND [Connected?] = true")
If testport3 = 1 Then
port3.Transparent = False
Else
port3.Transparent = True
End If
---------------------
That is what I currently have, but for every single port. The form is
slow to load up, and I'm wondering if there is an easier and quicker
way to do this!
Thanks in advance,
Ally
What I am trying to achieve is the following:
A form has 24 command buttons related to 24 network ports. If the port
is shown as 'Connected', then its command button is shown. If the port
is not shown as 'Connected', then its command button is transparent.
---------------------
testport3 = DCount("[Port Number]", "[ports]", "[Switch ID] Like
switchid AND [Port Number] Like '3' AND [Connected?] = true")
If testport3 = 1 Then
port3.Transparent = False
Else
port3.Transparent = True
End If
---------------------
That is what I currently have, but for every single port. The form is
slow to load up, and I'm wondering if there is an easier and quicker
way to do this!
Thanks in advance,
Ally