关于查询的代码
有点不明白这段,有些含糊,尤其是,为什么物料编号和型号规格要加like,而物料名称不用呢?
Tables("物料信息表").Filter ="供货厂家 = '" & cj.Text & "' and 物料名称 ='" & wlmc.Text & "' and 物料编号 like '*" & wlbh.Text & "' and 型号规格 like '*" & xhge.Text & "'"
另外,显示“全部”的代码
视频的代码是:
Dim cj As WinForm.ComboBox = e.Form.Controls("厂家")
Dim wlmc As WinForm.ComboBox = e.Form.Controls("物料名称")
Dim wlbh As WinForm.TextBox = e.Form.Controls("物料编号")
Dim xhgg As WinForm.TextBox = e.Form.Controls("型号规格")
cj.Text = ""
wlmc.Text = ""
wlbh.Text = ""
xhgg.Text = ""
Tables("物料信息表").Filter = ""
而我这样写,发现也能显示
Dim cj As WinForm.ComboBox = e.Form.Controls("厂家")
Dim wlmc As WinForm.ComboBox = e.Form.Controls("物料名称")
Dim wlbh As WinForm.TextBox = e.Form.Controls("物料编号")
Dim xhge As WinForm.TextBox = e.Form.Controls("型号规格")
Tables("物料信息表").Filter =""
中间那段的作用是什么呢?