SteveL13
asked on
Lock field on a form if the record is not a new record
I want to lock a field on a form if the record is not a new record. I've tried this in the on current event but it doesn't work:
If Me.NewRecord = True Then
Me.txtJobNumber.Locked = False
Else
Me.txtJobNumber.Locked = True
End If
If Me.NewRecord = True Then
Me.txtJobNumber.Locked = False
Else
Me.txtJobNumber.Locked = True
End If
If you step through the code, what happens?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.