asp access输出问题
dim yeardim month
year=Request.Form("nowYear")
month=Request.Form("month")
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select ygxm,ksrq,title,carhm,carzt from carzy where carhm <> '萧山机房' and (ksrq >= #"&year&"-"&month&"-1# and ksrq < #"&year&"-"&(month+1)&"-01#) order by ygxm"
rs.Open sql,conn,1,2
rs.update
Set fs = server.CreateObject("scripting.filesystemobject")
filename = Server.MapPath("tongji.xls")
if fs.FileExists(filename) then
fs.DeleteFile(filename)
end if
set myfile = fs.CreateTextFile(filename,true)
if rs.EOF and rs.BOF then
怎么只能一直下载第一次查询出来那个月的数据? 还不知道屏蔽掉‘萧山机房’?求高手解答