Foxtable(狐表)用户栏目专家坐堂 → [求助] Select出现错误了


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

主题:[求助] Select出现错误了

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


加好友 发短信
等级:童狐 帖子:251 积分:1869 威望:0 精华:2 注册:2018/1/16 20:53:00
  发帖心情 Post By:2020/7/12 11:30:00 [显示全部帖子]


    cmd6.CommandText = "S elect top 1 [FPrice] From ({ICStockBillEntry} Inner JOIN {t_Item} ON {t_Item}.[FItemID] = {ICStockBillEntry}.[FItemID]) Inner JOIN {ICStockBill} ON {ICStockBill}.[FInterID] = {ICStockBillEntry}.[FInterID] Where {ICStockBill}.[FBillNo] like '%WIN%' and {ICStockBillEntry}.[FItemID]) ='" & rrr("PartNo") &"' order by {ICStockBill}.[FDate] desc"
    Dim Values6 = cmd6.ExecuteValues
    If Values6.Count > 0 Then
        rrr("TotalVatRrice") = Values6("FPrice")
    End If

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


加好友 发短信
等级:童狐 帖子:251 积分:1869 威望:0 精华:2 注册:2018/1/16 20:53:00
  发帖心情 Post By:2020/7/12 20:51:00 [显示全部帖子]

cmd6.CommandText = "S elect top 1 [FPrice] From {ICStockBillEntry} Inner JOIN {t_Item} ON {t_Item}.[FItemID] = {ICStockBillEntry}.[FItemID]) Inner JOIN {ICStockBill} ON {ICStockBill}.[FInterID] = {ICStockBillEntry}.[FInterID] Where {ICStockBill}.[FBillNo] like '%WIN%' and {ICStockBillEntry}.[FItemID] ='" & rrr("PartNo") &"' order by {ICStockBill}.[FDate] desc"

 回到顶部