有机磷中毒后遗症表现:在vb中,用select语句时的where出问题了

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/04 14:50:07
我用select*from table where 日期 like '12%1995%" 可以查到12/01/1995
但是当用一变量 month =Val(text1.text),year=Val(text2.text)后
即 select*from table where 日期 like 'month%year%" 输入1995 12就不行了
谢谢帮忙!!!!

"select * from table where 日期 like '" & cstr(month) & "%" & cstr(year) & "%'"