Foxtable(狐表)用户栏目专家坐堂 → ComboBox 带入


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

主题:ComboBox 带入

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/8/22 21:34:00 [显示全部帖子]

 直接查表就可以了的啊

 

http://www.foxtable.com/webhelp/scr/0396.htm

 


 回到顶部
帅哥哟,离线,有人找我吗?
大红袍
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/8/22 22:55:00 [显示全部帖子]

TextChanged事件

 

Dim cbx1 As WinForm.ComboBox = e.Form.Controls("ComboBox1")
Dim cbx2 As WinForm.ComboBox = e.Form.Controls("ComboBox2")
Dim cbx3 As WinForm.ComboBox = e.Form.Controls("ComboBox3")
Dim rdo1 As WinForm.RadioButton = e.Form.Controls("RadioButton1")

If rdo1.Checked AndAlso cbx1.Text = "对公" Then
    Dim fdr As DataRow = DataTables("表A").Find("第一列 = '" & cbx2.Text & "'")
    If fdr IsNot Nothing Then
        cbx3.Text = fdr("第二列")
    End If
End If


 回到顶部
帅哥哟,离线,有人找我吗?
大红袍
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/8/23 22:02:00 [显示全部帖子]

Dim cbx1 As WinForm.ComboBox = e.Form.Controls("ComboBox1")

Dim cbx2 As WinForm.ComboBox = e.Form.Controls("ComboBox2")

Dim cbx3 As WinForm.ComboBox = e.Form.Controls("ComboBox3")

Dim rdo1 As WinForm.RadioButton = e.Form.Controls("RadioButton1")

If rdo1.Checked AndAlso cbx1.Text = "对公" Then
    Dim fdr As DataRow = DataTables("表A").Find("第一列 = '" & cbx2.Text & "'")
    If fdr IsNot Nothing Then
        cbx3.Text = fdr("第二列")
    Else
        MessageBox.Show("无此供应商档案")
    End If   
End If


 回到顶部