Question : Access variable field locking

Not sure about my title but this is what I am looking.

I have a field  [text0] i want this field lock except when new record is being created.  This is a db field and I dont want users to be changing the values.

Answer : Access variable field locking


use the current event of the form

private sub form_current()

if me.newrecord then
me.text0.locked=false
else
me.text0.locked=true
end if

end sub
Random Solutions  
 
programming4us programming4us