Dim r As Row = Tables("分院文件.文件登记").CurrentIf r IsNot Nothing AndAlso r("登录人") = User.name Then r.DeleteElse e.Cancel = TrueEnd If