Hello group, you have never failed to be helpful, so I have another question. This is one of those issues that should be super easy, but it isn't.
To put it as simply as possible, I want the user to have to check the "Yes" box on the form, in order to enable text input on another text field on the form.
So I set up a little option group on my form ("Frame_475"), with simple yes/no option buttons. The default is "no". Another text box on the form ("Master Task") is disabled by default, unless the person chooses "yes", then that field is enabled for them to enter information.
So I set up this code in the Frame_475 After update:
_____________________________________________
Private Sub Frame475_AfterUpdate()
If (Me.Frame475.Value = False) Then
Me.[Master Task].Enabled = False
Else
Me.[Master Task].Enabled = True
End If
End Sub
______________________________________
It works - partially. Basically it works right off the bat, but when I change the box on any record from No to Yes, then the [Master Task] field is enabled on ALL records! Obviously that wasn't my intent. It should only work on the current record. I have tried this code as a before event, and after event. I have tried it both on the option group, and on the text field. I have tried using "Value=0" instead of "Value=false". All had similar buggy results.
I have also tried it in the On Load event for the form itself, but in that case it didn't do anything at all.
What am I missing here? Any suggestions?