Foxtable(狐表)用户栏目专家坐堂 → 关于表达式问题


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

主题:关于表达式问题

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


加好友 发短信
等级:五尾狐 帖子:1033 积分:7258 威望:0 精华:0 注册:2008/9/1 22:34:00
关于表达式问题  发帖心情 Post By:2012/6/22 11:15:00 [只看该作者]

Dim s As String = e.Form.Controls("TextBox2").Text
    Dim t As WinForm.Table = e.Form.Controls("Table1")
    If s = "" Then
        s = ""
    Else
        s = "%" & s & "%"
        'tbl.Filter = "item_no Like" & txt
    End If
   
    t.Table.Fill("select {obas_part1}.part_no As 内码编码,{obas_part}.item_no As 料品编码,{obas_part_spec}.cu_part_no As 客户编码,type_name As 料品类别,part_name As 料品名称,part_spec As 料品规格,base_name As 单位,{obas_part_spec}.wf_cp_ggrem As 规格备注,wf_cp_gz As 国家,wf_cp_kr As 客人,wf_bz_fs As 包装方式 From ((({obas_part1} Inner JOIN {obas_part} ON {obas_part1}.[part_no] = {obas_part}.[part_no]) Inner JOIN {obas_part_type} ON {obas_part1}.[part_type] = {obas_part_type}.[type_no]) Inner JOIN {obas_base_code} ON {obas_base_code}.[base_code] = {obas_part1}.[unit_no])  left join {obas_part_spec} on {obas_part1}.[part_no]= {obas_part_spec}.[part_no] Where {obas_base_code}.[code_type] = '" & 115 & "' And {obas_part1}.[part_type] Like '" & 1% & "'And {obas_part}.item_no = '" & s & "'
   Order By {obas_part}.item_no","erp",True)

 

 

请问我上面的代码为什么出错?



此主题相关图片如下:1.jpg
按此在新窗口浏览图片

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


加好友 发短信
等级:五尾狐 帖子:1033 积分:7258 威望:0 精华:0 注册:2008/9/1 22:34:00
  发帖心情 Post By:2012/6/22 11:51:00 [只看该作者]

现在可以了

 回到顶部