Foxtable(狐表)用户栏目专家坐堂 → 请问代码问题在哪里


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

主题:请问代码问题在哪里

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


加好友 发短信
等级:超级版主 帖子:109736 积分:558396 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/11/14 14:54:00 [显示全部帖子]

Dim txt As String = e.sender.Text
If txt > ""
    txt = "'%" & txt & "%'"
    Dim dr As DataRow
    Dim po As Integer
    po = Tables("上分_table1").FindRow("[考号] Like" & txt)
    If po >= 0 Then '如果找到
        Tables("上分_table1").Position = po '选定
    Else
        Tables("上分_table1").Position = 0
        MessageBox.show("该考号在所选学生范围内不存在")
        e.sender.text = ""
    End If
End If

 回到顶部