hi
i want to be able to lock a field on a form after the user updates it, i have an if statement but i cant seem to get it to work, can someone take a look at it and tell me if theres something missing from it
i want to be able to lock a field on a form after the user updates it, i have an if statement but i cant seem to get it to work, can someone take a look at it and tell me if theres something missing from it
Code:
Private Sub Form_Current()
If IsNull(Me.cboVehicleID) Then
cboVehicleID.Locked = False
Else
cboVehicleID.Locked = True
Me.cboVehicleID.BackColor = RGB(206, 206, 206)
End If
End Sub