I have a form & used a wizard to install a search feature for it. A very important control on the form would most likely be the first criteria searched but I
I have a form & used a wizard to install a search feature for it. A very important control on the form would most likely be the first criteria searched but I

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
Try using the OnFilter event for the form to unlock/enable the control. It would be a few simple lines of code something like:
txtSSN.Enabled = True
txtSSN.Locked = False
Then use the OnApplyFilter event to reset the lock.
txtSSN.Enabled = False
txtSSN.Locked = True
I did the following code in the click event of my search button, let me know if this is ok as it is essentially giving me the result I want.
Me.txtReferenceNumber.Enabled = True
Me.txtReferenceNumber.Locked = False
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Me.txtReferenceNumber.Enabled = False
Me.txtReferenceNumber.Locked = True