M
Mesa
Ok, this is a continuation of my last post. My problem is I want to
make 1 textbox control two other text boxes. If I type any text into a
textbox called "collegeoruniversity", I want the other two text boxes
called "degree" and "fieldofstudy" to enable and if there is no text at
all i want them to be disabled.
This code below works to do all that I ask but there is one problem
Private Sub CollegeorUniversity_AfterUpdate()
blnEnabled = Len(Me.[CollegeorUniversity] & "") > 0
Me![Degree].Enabled = blnEnabled
Me![FieldofStudy].Enabled = blnEnabled
End Sub
The inconvienience is that I have to click out of the box in order to
enter a value in "degree" or "fieldofstudy". This is because it wont
apply the code until after I update by clicking out of the box. My
guess is that I need to apply the "Change()" command but it will not
work properly when I applied it. I am very thankfull for the help that
got me this far.
I also am trying to apply coding for the "Form_Current()" so that when
I go to the next record the proper textbox properties will apply.
"Infantry leads the way! Airborne, all the way!"
make 1 textbox control two other text boxes. If I type any text into a
textbox called "collegeoruniversity", I want the other two text boxes
called "degree" and "fieldofstudy" to enable and if there is no text at
all i want them to be disabled.
This code below works to do all that I ask but there is one problem
Private Sub CollegeorUniversity_AfterUpdate()
blnEnabled = Len(Me.[CollegeorUniversity] & "") > 0
Me![Degree].Enabled = blnEnabled
Me![FieldofStudy].Enabled = blnEnabled
End Sub
The inconvienience is that I have to click out of the box in order to
enter a value in "degree" or "fieldofstudy". This is because it wont
apply the code until after I update by clicking out of the box. My
guess is that I need to apply the "Change()" command but it will not
work properly when I applied it. I am very thankfull for the help that
got me this far.
I also am trying to apply coding for the "Form_Current()" so that when
I go to the next record the proper textbox properties will apply.
"Infantry leads the way! Airborne, all the way!"