Foxtable(狐表)用户栏目专家坐堂 → 复选框筛选


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

主题:复选框筛选

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


加好友 发短信
等级:一尾狐 帖子:419 积分:3316 威望:0 精华:0 注册:2012/3/21 10:44:00
复选框筛选  发帖心情 Post By:2012/6/22 14:12:00 [显示全部帖子]

我想把订单明细表的订单号等于复选框ComboBox1里的订单号,填入到订单表

我用以下代码调试无效

求助,谢谢

Dim Cols1() As String = {"订货日期","客户名称","订单号","产品型号","产品名称","产品规格","产品颜色","数量","金额","已发货","备注"}
Dim Cols2() As String = {"订货日期","客户名称","订单号","产品型号","产品名称","产品规格","产品颜色","数量","金额","已发货","备注"}
Dim dhrq As String = e.Form.Controls("ComboBox1").text   

                               'e.Form.Controls("ComboBox1").Value
For Each dr1 As DataRow In DataTables("订单明细表").Select("订单号 = 'dhrq'")  

    Dim dr2 As DataRow = DataTables("订单表").AddNew()
    For i As Integer = 0 To Cols1.Length -1
        dr2(Cols2(i)) = dr1(Cols1(i))
    Next
Next
MainTable= Tables("订单表")


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


加好友 发短信
等级:一尾狐 帖子:419 积分:3316 威望:0 精华:0 注册:2012/3/21 10:44:00
  发帖心情 Post By:2012/6/24 19:29:00 [显示全部帖子]

问题已解决,谢谢!!!


 回到顶部