Hmmm... I did that, changed the "text8" portion to "searchbox" (the name of the textbox), put the code into the Refresh method of "form1" (the name of the form), and "searchbox" is still inaccessible, whether in edit mode or not. I can click into the box, but can't type anything, and the Status bar says "This control is read-only."
>In the form.refresh method. Remember to change the text8 to whatever the name of your textbox is.
>>Looks good to me. Last (hopefully) stupid question: where does this chunk of code go?
>>
>>Thanks again for all your help!
>>
>>>Yes, I would do it this way:
>>>
>>>IF !THISFORM.buttonset1.editmode
>>> THISFORM.text8.ENABLED = .T.
>>>ELSE
>>> THISFORM.text8.ENABLED = .F.
>>>ENDIF
>>>
>>>buttoneset1 is the usual name for the command group of buttons that control add, save, delete and exit, etc. editmode is a property on that command group, that the parent code looks at to deturmine the setting for the form's objects.
>>>HTH