日期:2014-05-17  浏览次数:21090 次

错哪里?sql="select * from lrlxhb where year(bbnd)="&dis_nd
sql="select * from lrlxhb where year(bbnd)="&dis_nd

Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1

------解决方案--------------------
sql="select * from (select year(bbnd) as yy from lrlxhb) where yy=" & dis_nd+";"
------解决方案--------------------
sql="select * from lrlxhb where bbnd like %"&dis_nd&"%"