Hi!
Sorry I couldn't get back to this until this morning and thanks to Tony for picking up the slack. A couple of things I would like to add. I think you need to relock the text boxes if an existing record is accessed, like this:
If IsNewRecord = True Then
Me!employeeID.locked = Flse
Me!firstname.Locked = False
Me!lastname.Locked = False
Else
Me!employeeID.locked = True
Me!firstname.Locked = True
Me!lastname.Locked = True
End If
Secondly, since employeeID looks like a primary key you might be able to use simpler code like this:
If IsNull(Me!employeeID) = True Then
Me!employeeID.locked = Flse
Me!firstname.Locked = False
Me!lastname.Locked = False
Else
Me!employeeID.locked = True
Me!firstname.Locked = True
Me!lastname.Locked = True
End If
Again, this would be in the Form_Current event procedure.
hth
Jeff Bridgham
bridgham@purdue.edu