A
alex
I have a form with a textbox linked to public dcount function that
returns a byte.
The function and textbox seem to work just fine; i.e., the textbox
returns the correct value and changes when it’s supposed to.
I’ve been trying to code the after update event of the textbox,
however, and can’t get it to fire. It just doesn’t recognize when
it’s updated.
What I’m looking to do should be incredibly simple: I’m trying to
hide the textbox if the value is 0.
I’ve tried several different types of code, but here’s my latest code
to see if I can get the thing to fire:
Private Sub txtIndicatorLight_afterupdate()
If Me.txtIndicatorLight.value > 0 Then ‘I’ve tried me.txtIndicator > 0
Me.txtIndicatorLight.visible = True
Else
Me.txtIndicatorLight.visible = False
End If
End Sub
Thanks,
alex
returns a byte.
The function and textbox seem to work just fine; i.e., the textbox
returns the correct value and changes when it’s supposed to.
I’ve been trying to code the after update event of the textbox,
however, and can’t get it to fire. It just doesn’t recognize when
it’s updated.
What I’m looking to do should be incredibly simple: I’m trying to
hide the textbox if the value is 0.
I’ve tried several different types of code, but here’s my latest code
to see if I can get the thing to fire:
Private Sub txtIndicatorLight_afterupdate()
If Me.txtIndicatorLight.value > 0 Then ‘I’ve tried me.txtIndicator > 0
Me.txtIndicatorLight.visible = True
Else
Me.txtIndicatorLight.visible = False
End If
End Sub
Thanks,
alex