Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

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
Avatar of Anders Ebro (Microsoft MVP)
Anders Ebro (Microsoft MVP)
Flag of Denmark image

If you step through the code, what happens?
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial