I do, and your fix:
IF !THISFORM.buttonset1.editmode
THISFORM.vSearchvalue.ENABLED = .T.
THISFORM.vSearchvalue.READONLY = .F.
ELSE
THISFORM.vSearchvalue.ENABLED = .F.
THISFORM.vSearchvalue.READONLY = .T.
ENDIF
worked great. I posted it here in case others were curious.
Thanks!
>You should have a reply in your box now.
>
>>Will do. I'll get it together in a few minutes and fire it off to your email address.
>>
>>Thanks!
>>
>>>I am not sure what the problem is. That is how I have my code and everything works.
>>> Would you be willing to zip up the form and table to send me and I can look to see what we are both missing?
>>>>Absolutely nothing - just what you told me. With the textbox name changed from "text8" to "vSearchvalue".
>>>>
>>>>>What else do you have in the refresh method?
>>>>>>I put that in there - no good. The search box is still read-only.
>>>>>>
>>>>>>>Should be just:
>>>>>>>
>>>>>>>IF !THISFORM.buttonset1.editmode
>>>>>>> THISFORM.text8.ENABLED = .T.
>>>>>>>ELSE
>>>>>>> THISFORM.text8.ENABLED = .F.
>>>>>>>ENDIF
>>>>>>>
>>>>>>>
>>>>>>>>>Sorry, took so long getting back to you, I took a 4-day weekend.
>>>>>>>>
>>>>>>>>No problem at all. I hope you enjoyed your weekend! :)
>>>>>>>>
>>>>>>>>>did you go into the refresh method of the textbox or the form and put in the code for setting the enabled equal to .T. for that textbox?
>>>>>>>>
>>>>>>>>I've tried that, and it had no effect. Maybe I'm entering that piece of code incorrectly? What, exactly, would the syntax be for the Refresh method code?