Foxtable(狐表)用户栏目专家坐堂 → [求助]突然发现的错误,日期选择框代码


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

主题:[求助]突然发现的错误,日期选择框代码

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/2/15 19:31:00 [显示全部帖子]

 如2楼,这样改一下

Dim lst As WinForm.ComboBox = e.form.Controls("ComboBox1")
lst.items.Clear
e.Form.Controls("ComboBox1").Value = ""
Dim rq As String = e.form.Controls("DateTimePicker1").Value
Dim cmd As New SQLCommand
Dim dt As DataTable
If rq > "" Then
    cmd.CommandText = "SELECT DISTINCT BRXM From {SFMX} Where RQ = #" & rq & "#"
Else
    cmd.CommandText = "SELECT DISTINCT BRXM From {SFMX}"
End If
dt = cmd.ExecuteReader
e.Form.Controls("ComboBox1").Combolist = dt.GetComboListString("BRXM")

 回到顶部