Foxtable(狐表)用户栏目专家坐堂 → [求助]


  共有5335人关注过本帖平板打印复制链接

主题:[求助]

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


加好友 发短信
等级:婴狐 帖子:77 积分:600 威望:0 精华:0 注册:2014/5/7 15:04:00
[求助]  发帖心情 Post By:2014/5/21 16:10:00 [只看该作者]

'Dim dr As DataRow = e.DataRow
If e.DataRow = " "   Then '如果不是新增行
   ' Return '那么返回
ElseIf e.IsNull("编号") Then '如果没有输入日期
   ' e.Cancel = True '取消保存此行
   MessageBox.Show("必须输入编号!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    'Return
ElseIf  e.IsNull("姓名") Then
   MessageBox.Show("必须输入姓名!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

ElseIf  e.IsNull("岗位名称") Then
   MessageBox.Show("必须输入岗位名称!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

ElseIf  e.IsNull("业务名称") Then
   MessageBox.Show("必须输入业务名称!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
 
ElseIf  e.IsNull("业务步骤") Then
   MessageBox.Show("必须输入业务步骤!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

ElseIf  e.IsNull("汇总时间") Then
   MessageBox.Show("必须输入汇总时间!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

ElseIf  e.IsNull("频率") Then
   MessageBox.Show("必须输入频率!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

End If

 

 

如何控制一个单元格为空的时候返回值“需要填写”,在哪个属性里写?


 回到顶部
总数 22 1 2 3 下一页