Oh, does your form have an unbound combobox to allow searching for specific records on it, and when you choose a name the record jumps to the name selected? Yes, that is very annoying that this combobox also becomes usesless when you set the AllowEdits property of the form to FALSE.
To get the best of both worlds, you'll have to keep the AllowEdits property of the form always to TRUE. In that case, you'll have to toggle all the LOCKED property of each element to true/false instead. To do them all at once:
First, in those controls where you don't want them to get locked, e.g. that combox box, any command buttons, etc. Write something in their TAG properties, e.g. Exempt. Then in the form's ON CURRENT event, you can put this
Dim ctlControl as Control
For Each ctlControl in Me
If ctlControl.Tag <> "Exempt" Then
ctlControl.Locked = True
Then when you want to allow editing, you do the same code on the button's ON CLICK event, but set Locked to False.
Michigan Dept. of Environmental Quality, Air Quality Division