Foxtable(狐表)用户栏目专家坐堂 → beforeclose错误


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

主题:beforeclose错误

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


加好友 发短信
等级:超级版主 帖子:106688 积分:542629 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/1/20 23:30:00 [显示全部帖子]

方法一样啊

If Tables("hsbcusd1").Current IsNot Nothing AndAlso Tables("hsbcusd1").Current.isnull("年月") = True Then

或者

If Tables("hsbcusd1").Current IsNot Nothing
    If  Tables("hsbcusd1").Current.isnull("年份") = True Then
        MessageBox.Show("年份不能为空,请输入年份!","提示", MessageBoxButtons.OK ,MessageBoxIcon.Information)
        e.Cancel = True
    ElseIf Tables("hsbcusd1").Current.isnull("年月") = True Then
        MessageBox.Show("年月不能为空,请输入年月!","提示", MessageBoxButtons.OK ,MessageBoxIcon.Information)
        e.Cancel = True
    End If
End If

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106688 积分:542629 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/1/21 8:43:00 [显示全部帖子]

不应该有问题的,试试
If Tables("hsbcusd1").Current IsNot Nothing
    If  Tables("hsbcusd1").Current.isnull("年份") = True Then
        MessageBox.Show("年份不能为空,请输入年份!","提示", MessageBoxButtons.OK ,MessageBoxIcon.Information)
        e.Cancel = True
    end if
    If Tables("hsbcusd1").Current.isnull("年月") = True Then
        MessageBox.Show("年月不能为空,请输入年月!","提示", MessageBoxButtons.OK ,MessageBoxIcon.Information)
        e.Cancel = True
    End If
End If

 回到顶部