G
Guest
I've read several of the posts with the similar subject of disabling controls
based off of a checkbox value, however I can't seem to get this to work.
I want a "one time use checkbox", meaning when a user clicks it, not only do
other controls become disabled, so does the checkbox itself (after update).
The thought behind this is the user clicks the checkbox, current date
populates in the bound textbox, all the labels, controls and options either
become disabled or hidden once this checkbox is clicked(to prevent other
changes once Date is set) and then it too becomes diisabled.
I've added the following code to to the form's on current event as well as
the checkbox's after update event. Problem is how do I get the textbox that
iniatiated all of the disables/hides to disiable itself after use without
disabling every checkbox in every record. Checkbox is bound as are all other
controls and form is single form.
Here is where I’m currently at:
If Me.Check675.Value = True Then
Me.Check675.Enabled = False
Me.Check1119.Visible = Check675
Me.Label1118.Visible = False
Me.Label1120.Visible = False
Me.Text1121.Visible = False
Me.Command1122.Visible = False
Me.Command1124.Visible = False
Else
Me.Check675.Enabled = True
Me.Check1119.Visible = True
Me.Label1118.Visible = True
Me.Label1120.Visible = True
Me.Text1121.Visible = True
Me.Command1122.Visible = True
Me.Command1124.Visible = True
End If
based off of a checkbox value, however I can't seem to get this to work.
I want a "one time use checkbox", meaning when a user clicks it, not only do
other controls become disabled, so does the checkbox itself (after update).
The thought behind this is the user clicks the checkbox, current date
populates in the bound textbox, all the labels, controls and options either
become disabled or hidden once this checkbox is clicked(to prevent other
changes once Date is set) and then it too becomes diisabled.
I've added the following code to to the form's on current event as well as
the checkbox's after update event. Problem is how do I get the textbox that
iniatiated all of the disables/hides to disiable itself after use without
disabling every checkbox in every record. Checkbox is bound as are all other
controls and form is single form.
Here is where I’m currently at:
If Me.Check675.Value = True Then
Me.Check675.Enabled = False
Me.Check1119.Visible = Check675
Me.Label1118.Visible = False
Me.Label1120.Visible = False
Me.Text1121.Visible = False
Me.Command1122.Visible = False
Me.Command1124.Visible = False
Else
Me.Check675.Enabled = True
Me.Check1119.Visible = True
Me.Label1118.Visible = True
Me.Label1120.Visible = True
Me.Text1121.Visible = True
Me.Command1122.Visible = True
Me.Command1124.Visible = True
End If