Foxtable(狐表)用户栏目专家坐堂 → 用sql语句改写


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

主题:用sql语句改写

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


加好友 发短信
等级:小狐 帖子:305 积分:2401 威望:0 精华:0 注册:2013/4/9 11:49:00
用sql语句改写  发帖心情 Post By:2014/8/26 10:53:00 [只看该作者]

Dim dr As DataRow
Dim zhanghao As String = e.Form.Controls("textbox1").Value
If zhanghao = Nothing Then
    MessageBox.Show("请输入您的登录账号!", "错误提示!",MessageBoxButtons.OK,MessageBoxIcon.Information)
    e.Cancel = True
Else
    DataTables("login").LoadFilter= "[登陆账号] = '" & zhanghao & "'"
    DataTables("login").Load
    dr = DataTables("login").Find("[登陆账号] = '" & zhanghao & "'")
    If dr Is Nothing Then
     Messagebox.show("登陆账号不对!","错误提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
       e.Sender.Text=""
        e.Cancel = True
Else
    e.Form.Controls("textbox2").value=dr("登陆名")

                End If
End If

这段代码用sql语句怎么写

 回到顶部