Thisform.oPrevControl = IIF(TYPE("Thisform.ActiveControl") = "O" AND NOT ISNULL Thisform.ActiveControl),Thisform.ActiveControl,This.Parent.txtValue)