You should put the code on the On_Current of the main form, not the open event for the subform. Also, not sure which fires first, On Open or On Load. If the value of the text box isn't filled because the record isn't loaded, then the If condition wont be met. Also, if you change records, then...