Text box entry Populates a checkbox

JPW

Registered User.
Local time
Today, 15:01
Joined
Nov 4, 2007
Messages
51
I have a text box called 'txtvalue' and whenever an amount is entered into that field I would like the tick/check box which is called 'deductable' to be True. Can this be achieved and if so how?

Thank you.
 
Code:
Private Sub txtValue_AfterUpdate()
  If Not IsNull(Me.txtValue) Then
    Deductible = -1
  Else
    Deductible = 0
End If
End Sub
If Deductible is a bound control (is tied to a field in the underlying table) this is all you need. If it's an unbound control, you'll need to repeat this code in the Form_Current event.
 

Users who are viewing this thread

Back
Top Bottom