Foxtable(狐表)用户栏目专家坐堂 → 请问大师:关闭窗口删除当前工作表空白行代码如何写呀


  共有1872人关注过本帖树形打印复制链接

主题:请问大师:关闭窗口删除当前工作表空白行代码如何写呀

帅哥哟,离线,有人找我吗?
有点色
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/3/6 15:12:00 [显示全部帖子]

Dim nms() As String = {"身份证号码","办公地址"}
Dim ep As String = ""
For Each nm As String In nms
    If Tables("部门档案").current.isnull(nm) Then
        ep= nm
        Exit For
    End If
Next
If ep > "" Then
    messagebox.show(ep & "不能为空")
    Return
End If

DataTables("部门档案").DeleteFor("身份证号码 Is null And 办公地址 Is null")
DataTables("部门档案").Save()
Forms("部门档案录入").Close


 回到顶部