Re: Macro to Lock Data in a Field Once Record is Saved
- From: "Ken Snell \(MVP\)" <kthsneisllis9@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Jul 2008 22:18:37 -0400
Use the form's Current event to test the NewRecord property, and set the
Locked property for the control accordingly:
Private Sub Form_Current()
Me.NameOfControl.Locked = Not Me.NewRecord
End Sub
--
Ken Snell
<MS ACCESS MVP>
"Banda" <Banda@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:516F876C-2322-4E43-8F40-190D80AB3F6B@xxxxxxxxxxxxxxxx
i would like to run a macro that will deny user to change data onceI would like the data in that field to be locked once record is saved,
entered
in Ms Access form field. what must i put in macro, your help will be
greatly
appreciated,
Thanks
.
- Follow-Ups:
- Re: Macro to Lock Data in a Field Once Record is Saved
- From: Ken Snell \(MVP\)
- Re: Macro to Lock Data in a Field Once Record is Saved
- Prev by Date: Re: Access macro: How to output 3 queries to 3 tabs in 1 Excel wor
- Next by Date: Re: Macro to Lock Data in a Field Once Record is Saved
- Previous by thread: Re: Need Help on Macro, really confused
- Next by thread: Re: Macro to Lock Data in a Field Once Record is Saved
- Index(es):