以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  窗口表  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=120744)

--  作者:sky2015
--  发布时间:2018/6/22 18:09:00
--  窗口表
窗口表类型为SQLQuery,SQL如下:
s elect 
Measurements.DateTime_ as \'检验日期\',
Measurements.ID1 as \'炉号\',
rtrim(YangPin.name) as \'样品分类\',
Results.Component as \'成分\',
Results.Reported as \'值\'
fr om Measurements
left join Results on  Results.Measurement=Measurements.id
left join YangPin on YangPin.id=Measurements.id3
where Measurements.id is null
order by Measurements.ID

在窗口中添加按钮、和文本框架,实现窗口表按条件查询数据:
Dim bh As WinForm.TextBox = e.Form.Controls("TextBox1")
Tables("窗口1_Table1").DataTable.LoadFilter = "炉号 = " & bh.Text 
Tables("窗口1_Table1").DataTable.Load

报错,求助




--  作者:sky2015
--  发布时间:2018/6/22 18:29:00
--  
搞定,不能用as后的名称,要用 Measurements.ID1 图片点击可在新窗口打开查看