怎样将access中的记录导出到一个txt文件中

seeme1014 2005-11-09 02:54:31
我想把一个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
%>
...全文
128 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
seeme1014 2005-11-11
  • 打赏
  • 举报
回复
我已经自己解决了 谢谢
liujian098 2005-11-10
  • 打赏
  • 举报
回复
我在c/s中用vc实现过,那个实现方法很简单,不过在b/s中用asp好象不好实现,就是写文件也在服务器上啊,好象不好做!
zmy0611 2005-11-10
  • 打赏
  • 举报
回复
UP

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧