Hello,
I want to use a checkbox to let a uses choose between "yes" and "no"
In my data table I would like to display this as something else. For example: Coffee, Tea.
I try to accomplish this the following way:
I have a checkbox and a hidden textbox (source control is linked to the right column in the table).
When the checkbox is clicked the following code runs:
The only problem is that this works one time (true). When I try to click it again is does not work. When I remove the control source (so it's unlinked) it works?
Is this the "normal" approach to accomplish this? What a IO doing wrong?
Thanks in advance.
I want to use a checkbox to let a uses choose between "yes" and "no"
In my data table I would like to display this as something else. For example: Coffee, Tea.
I try to accomplish this the following way:
I have a checkbox and a hidden textbox (source control is linked to the right column in the table).
When the checkbox is clicked the following code runs:
Code:
Private Sub Check32_Click()
If Me.Check32.Value = True Then
Me.TxtXiHidden = "Coffee"
End If
If Me.Check32.Value = False Then
Me.TxtXiHidden = "Tea"
End If
End Sub
The only problem is that this works one time (true). When I try to click it again is does not work. When I remove the control source (so it's unlinked) it works?
Is this the "normal" approach to accomplish this? What a IO doing wrong?
Thanks in advance.
Last edited: