Foxtable(狐表)用户栏目专家坐堂 → [求助]临时列的问题


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

主题:[求助]临时列的问题

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


加好友 发短信
等级:版主 帖子:1693 积分:12135 威望:0 精华:7 注册:2013/7/11 10:52:00
  发帖心情 Post By:2014/3/17 21:22:00 [显示全部帖子]

Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.C
cmd.CommandText = "Select * From {MA14_MRP_Detail} where ([SNo] Not IN(Select [MRPSNo] From {PU02_Order_Detail})) And ([BillNo] In(Select [BillNo] From {MA14_MRP} where [State] = 2)) And [Qty] > 0 And [PurchaseOrProduce] = '采购'"
dt = cmd.ExecuteReader
 
dt.DataCols.Add("备注",Gettype(String)) '窗口名是 SQLTest
 
Tables("SQLTest_Table1").DataSource = dt
然后是
 

 回到顶部