如果我没有记错的话 between 应该是两具日期之间的 比如说:2005-5 到2006-2 sql="select * from newnotice where YEAR(noticedate)='"&year(myyear)&"'and month(noticedate)='"&month(mymonth)&"' order by id desc"
以下是引用hangxj在2006-6-20 14:36:56的发言: 刚才试了一下 sql="select * from newnotice where YEAR(noticedate)='"&myyear&"'and month(noticedate)='"&mymonth&"' order by id desc"