Hi guys!
Can you please help me out with the code for this:
I want a field in a form to be locked when existing records are displayed. However when a new record is being created/filled out in the form, then the field should be unlocked so the user can enter data into it.
This is where I am:
Thank you very much!Code:Private Sub Item_number_BeforeUpdate(Cancel As Integer) Dim intNewRecord As Integer intNewRecord = IsNull(Me![Item lot/piece number]) If intNewRecord Then End Sub
BR