Hi!
Bring up your form in design view.
Right-click a control (field) that you want to lock after data has been entered.
Select Properties.
Select the Event tab.
Select the On Enter line.
Select the square on the right containing three dots ...
Select Code Builder.
Copy/Paste the code from above between the two lines.
Change [controlname] to the name of the form field.
(You can verify exactly what this is by selecting the
Other tab on properties - It's listed on the Name line.)
Select Debut, then compile to make sure all references are correct.
Close (X) the VBA window.
Close the database.
(Not required, but seems to resolve some Access
idiosyncrasies that occasionally crop up.)
Open the database, form and test.
Repeat entering code for each form control that you want to work this way.
HTH,
Bob
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)