如何将一个access中的数据表导出为dBASE Ⅳ格式的dbf数据文件呢?

iou33449999 2006-06-18 07:34:45
由于项目要求,需要将一个access数据表导出为dBASE Ⅳ格式的dbf数据文件,并下载下来,不知道该怎么作,请教一下!因为现在的系统是一个access格式的,需要将数据导出为上述格式的文件才能被老系统接受(老系统是全国通用的,比较老了,但是使用率很高,这个是没有办法的办法了……)

谢谢!
...全文
539 11 打赏 收藏 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
iou33449999 2006-06-19
  • 打赏
  • 举报
回复
继续顶,谢谢大家关注。
iou33449999 2006-06-19
  • 打赏
  • 举报
回复
jiangsheng(蒋晟.Net[MVP]) 快来8858
iou33449999 2006-06-19
  • 打赏
  • 举报
回复
继续顶
iou33449999 2006-06-19
  • 打赏
  • 举报
回复
是呀,挺郁闷的……不知道怎么办了:(
iou33449999 2006-06-19
  • 打赏
  • 举报
回复
继续顶^_^
竹林听雨2005 2006-06-19
  • 打赏
  • 举报
回复
这句没错呀
aner 2006-06-19
  • 打赏
  • 举报
回复
帮忙顶
iou33449999 2006-06-19
  • 打赏
  • 举报
回复
<%
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
dbpath=Server.MapPath("down.mdb")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &dbpath
cn.Execute "select * into [DBase IV;Database=F:\dbf\].Customer from doctor"
cn.Close
Set cn = Nothing
%>

运行提示

Microsoft VBScript 编译器错误 错误 '800a0401'

语句未结束

/xueweiokokok/dbf.asp,行 2

Dim cn As ADODB.Connection
-------^
蒋晟 2006-06-18
  • 打赏
  • 举报
回复
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Northwind.mdb;"
cn.Execute "select * into [DBase IV;Database=D:\].Customer from Customers"
cn.Close
Set cn = Nothing
蒋晟 2006-06-18
  • 打赏
  • 举报
回复
Use the File/SaveAs Export menu, or use an ODBC driver.

In Access 2000 MS had a licensing problem with the ODBC for dBase. They were only allowed to make it read-only. To get a read/write driver you had to go to Borland.

Field names in dBASE files can't be longer than (I think) 10 characters and can't contain spaces or special chcaracters. If you have two fields whose names only differ after the 10th character, you can expect the error message you've been getting. Work round it by creating a query that uses short, unique field names, and export that.

Filenames and paths must also be short. No more than 8 characters for the file name (plus the .dbf) or any folder name in the path, no spaces, and the whole path mustn't be more than 64 characters long. So export them to somewhere like
C:\dBase\Exports\Myfile.dbf
not
C:\Documents and Settings\Lori\........
yeetoo 2006-06-18
  • 打赏
  • 举报
回复
得使用别人的或自己开发COM组件来实现.

28,402

社区成员

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

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