Foxtable(狐表)用户栏目专家坐堂 → [求助]窗口Tables 空间显示重复值


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

主题:[求助]窗口Tables 空间显示重复值

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


加好友 发短信
等级:管理员 帖子:47511 积分:251479 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2013/6/14 15:31:00 [显示全部帖子]

If e.DataCol.Name = "订单号" Then
    Dim dr As DataRow
    dr = e.DataTable.Find("订单号 = '" & e.NewValue & "'")
    If dr IsNot Nothing Then
        If MessageBox.Show("此订单号已经存在,日期:" & dr("日期") & ",是否继续输入?","提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question) =DialogResult.No Then
            e.Cancel = True
        End If
    End If
End If


 回到顶部