There is no need to unlock the field before populating it in code, all you have to do is set the field to locked and save it. Add code similar to the following and it should automatically populate when the user clicks on on, but only if the field is not already filled in.
Private Sub...