怎样将access中的记录导出到一个txt文件中
我想把一个email表中的一个字段的所有记录导出到txt文本中
不知道怎样实现,下面是我写的 但是不行
<!--#include file="../../conn.asp"-->
<title>outputemail</title>
</head>
<%
whichfile=server.mappath("../email/list.txt")
set myfile = server.createobject("scripting.filesystemobject")
set mytxt =myfile.createtextfile(whichfile,true)
Set record=Conn.Execute("select * from email")
do while not record.Eof
mytext.writeline(record("email"))
record.MoveNext
loop
set mytxt = nothing
set myfile= nothing
mytxt.close
set record= nothing
record.close
%>