进口羊奶粉品牌排行:在vb中,用select语句时的where出问题了

来源:百度文库 编辑:中科新闻网 时间:2024/05/14 05:23:00
我用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) & "%'"