四座震惊的意思是什么:在vb中,用select语句时的where出问题了

来源:百度文库 编辑:高校问答 时间:2024/04/28 23:49:54
我用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) & "%'"