以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  窗口查询列表问题  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=71090)

--  作者:hongyefor
--  发布时间:2015/7/4 17:41:00
--  窗口查询列表问题

Dim cxlb As WinForm.ComboBox = e.Form.Controls("查询类别")
Dim cxcf As WinForm.ComboBox = e.Form.Controls("查询成份")
Dim cxmc As WinForm.ComboBox = e.Form.Controls("查询名称")
cxmc.ComboList = DataTables("面料信息表").GetComboListString("面料名称","面料类别 = \'"& cxlb.text &"\'" And "成份 = \'"& cxcf.text &"\'"  )

 

这句代码哪里错了,通过“面料信息表”的“面料类别”和“成份”查询面料名称


--  作者:hongyefor
--  发布时间:2015/7/4 17:45:00
--  

Dim cxlb As WinForm.ComboBox = e.Form.Controls("查询类别")
Dim cxcf As WinForm.ComboBox = e.Form.Controls("查询成份")
Dim cxmc As WinForm.ComboBox = e.Form.Controls("查询名称")
cxmc.ComboList = DataTables("面料信息表").GetComboListString("面料名称","面料类别 = \'"& cxlb.text &"\' And 成份 = \'"& cxcf.text &"\'")

应该是这样的