纸的生产过程视频:在vb中,用select语句时的where出问题了

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/14 16:33:56
我用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) & "%'"