sql="select * from 标准数据 wher 规格型号 = " & trim(text1(8).text) & " and 芯数 = " & trim(text1(9).text) & " and 面积 = " & val(text1(10).text)
Dim MyRs as New Adodb.RecordSet
Set MyRs = MyCon.Execute(sql)
text1(12).text=MyRs("ID")
程序执行至MyCom.Execute(sql)中时,总是说至少一个有一个参数没有指定。不知为什么?哪位高手对于这种多条件查询比较熟悉,望帮小弟一把!
Dim MyRs as New Adodb.RecordSet
Set MyRs = MyCon.Execute(sql)
text1(12).text=MyRs("ID")
程序执行至MyCom.Execute(sql)中时,总是说至少一个有一个参数没有指定。不知为什么?哪位高手对于这种多条件查询比较熟悉,望帮小弟一把!
另外如果字段[规格型号]是字符类型的话要加单引号
sql="select * from 标准数据 where 规格型号 = '" & trim(text1(8).text) & "' and 芯数 = " & trim(text1(9).text) & " and 面积 = " & val(text1(10).text)
Dim MyRs as New Adodb.RecordSet
Set MyRs = MyCon.Execute(sql)
text1(12).text=MyRs("ID")
程序执行至MyCom.Execute(sql)中时,总是说至少一个有一个参数没有指定。不知为什么?哪位高手对于这种多条件查询比较熟悉,望帮小弟一把!
Dim MyRs as New Adodb.RecordSet
Set MyRs = MyCon.Execute(sql)
text1(12).text=MyRs("ID")
程序执行至MyCom.Execute(sql)中时,总是说至少一个有一个参数没有指定。不知为什么?哪位高手对于这种多条件查询比较熟悉,望帮小弟一把!