If you set the form's AllowEdits property to Yes, you will not be able to
use any controls for editing, regardless of their Locked property.
You need to leave AllowEdits as No, and set the Locked property to No for
all the control other than the one the one you allow. Of course they have be
be set back to Yes for new records.
Use the code in this link:
Locking bound controls on a form and subforms
at:
http://allenbrowne.com/ser-56.html
The article explains how to call the code from a command button, but in your
case you will want to call it from the Current event of the form, like this:
Call LockBoundControls(Me, Not Me.NewRecord, "NameOfControlToNotLock")
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Rolf Rosenquist" <(E-Mail Removed)> wrote in message
news:u9zf%(E-Mail Removed)...
>I have a form that is locked for editing already by opening the form. In
>the
> code I use the line "Me.AllowEdits = Me.NewRecord" so that only new
> records
> can be written.
>
> Now I need to let the user be able to change one single field also on old
> records. How can I let him do that? I have tried "Field.Locked = False"
> and
> "Field.Enabled = True" but it does not help.