以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- sql语句引用控件值 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=129845) |
-- 作者:yetle -- 发布时间:2019/1/7 15:48:00 -- sql语句引用控件值 Dim yf As Integer =e.Form.Controls("ComboBox1").text Dim nf As Integer =e.Form.Controls("ComboBox2").text Tables("查询班组历史_Table6").Fill("Select [班组],[计划产量] F rom [lucifer].[dbo].[班组月计划产量] where [年]=\'nf\' and [月]=\'yf\' order by [班组]","Lucifer",True) sql语句引用控件值,这样写不对,应该怎么写
|
-- 作者:有点甜 -- 发布时间:2019/1/7 16:05:00 -- Tables("查询班组历史_Table6").Fill("Select [班组],[计划产量] F rom [lucifer].[dbo].[班组月计划产量] where [年]=\'" & nf & "\' and [月]=\'" & yf & "\' order by [班组]","Lucifer",True) |